id stringlengths 16 145 | text stringlengths 1 179k | title stringclasses 1
value |
|---|---|---|
Client_Side/Client_Side_8_1.txt | clearEventProperties
This API should be called prior to calling the addEventProperties API. It
removes all previously stored event properties from the cookie, which ensures
the properties getting added by the next addEventProperties call are always
relevant.
JavaScript TypeScript Objective-C Swift Java Kotlin
... | |
Client_Side/13713_55_0.txt | Development
No branches or pull requests | |
Client_Side/how-to-prompt-for-push-permissions-with-an-in-app-message7_14_0.txt | #
Set Up Your Message | |
Client_Side/13713_30_0.txt | Additional navigation options
* Code
* Issues
* Pull requests
* Actions
* Projects
* Security
* Insights | |
Client_Side/how-to-prompt-for-push-permissions-with-an-in-app-message7_7_0.txt | iOS allows their native push prompt to be shown one time. It cannot be re-
shown if dismissed or if previously allowed. If it was shown in the past, the
user must be sent to their phone settings to enable notifications.
Android allows its native push prompt to be shown up to two times if the user
selects "Don't Allow"... | |
Client_Side/how-to-prompt-for-push-permissions-with-an-in-app-message7_6_0.txt | Suggest Edits
Both Apple's Human Interface Guidelines and Google's developer
documentation highly recommend providing context for the type of information
that will be sent and its value, when asking for push notification permission,
and offering users a clear way to opt-out. | |
Client_Side/web-sdk9_14_0.txt | Call this from each page of your site to initialize OneSignal. This call is
required before any other functions can be used.
JavaScript TypeScript | |
Client_Side/13713_43_0.txt | nan-li added the Help Wanted label Mar 21, 2022
Copy link | |
Client_Side/web-sdk9_29_0.txt | JavaScript
OneSignalDeferred.push(function() {
OneSignal.logout();
});
| |
Client_Side/web-sdk9_134_0.txt | OneSignal's Mobile and Web SDKs provide methods for collecting phone numbers,
logging out phone numbers, and tracking SMS subscriptions.
See SMS SDK Methods for more details. | |
Client_Side/Client_Side_5_1.txt | identify
This API allows you to attach a unique identity and maintain user histories
across sessions, devices, and browsers under a single profile in Heap.
> ## ❗️
>
> Do Not Use a Non-Unique Identifier
>
> Passing a non-unique identifier in the identify field, such as 'undefined',
> 'null', or 'user' will result i... | |
Client_Side/web-sdk9_3_0.txt | Home Guides Server REST API Reference Changelog
Loading… | |
Client_Side/13713_9_0.txt | Plan and track work
* Discussions | |
Client_Side/13713_0_0.txt | Skip to content
## Navigation Menu | |
Client_Side/web-sdk9_15_0.txt |
OneSignal.init({
appId: "YOUR ONESIGNAL APP ID"
});
// init(config: AppUserConfig): Promise<void>
OneSignal.init({
appId: "YOUR ONESIGNAL APP ID"
});
Init options are as follows. These only work with Custom Code Setup : | |
Client_Side/web-sdk9_44_0.txt | ##
Require privacy consent | |
Client_Side/Client_Side_12_0.txt | Jump to Content
[  ](https://heap.io)
[ __ Developer Guides ](/docs) [ __ API Reference ](/reference)
* * *
[ Developer Guides ](/docs) [ API Reference ](/reference) [ Help Center
](https://help.heap.io/) [ Engineering Blog
](https://heap.io/blog?categoryid=engi... | |
Client_Side/web-sdk9_39_0.txt | JavaScript
const aliases = ["ALIAS_LABEL_01", "ALIAS_LABEL_02", "ALIAS_LABEL_03"];
OneSignalDeferred.push(function() {
OneSignal.User.removeAliases(aliases);
});
| |
Client_Side/13713_10_0.txt | Collaborate outside of code
Explore | |
Client_Side/web-sdk9_102_0.txt | JavaScript
OneSignalDeferred.push(function() {
OneSignal.Slidedown.promptEmail();
});
| |
Client_Side/14209_10_0.txt | Collaborate outside of code
Explore | |
Client_Side/13713_46_0.txt | Hi @ignacio-sanhueza-ml , For any iOS application, the notifications
section won't appear in the app settings until the native iOS push prompt
dialog is shown (and will show up whether the user chooses Allow or Don't
Allow). Try this out with any of your iPhone applications after first
downloading them but before ... | |
Client_Side/13713_4_0.txt | Host and manage packages
* Security | |
Client_Side/web-sdk9_115_0.txt | Push Token
The subscription's push token. Required to receive push notifications. | |
Client_Side/14209_49_0.txt | Projects
None yet | |
Client_Side/Client_Side_11_0.txt | Jump to Content
[  ](https://heap.io)
[ __ Developer Guides ](/docs) [ __ API Reference ](/reference)
* * *
[ Developer Guides ](/docs) [ API Reference ](/reference) [ Help Center
](https://help.heap.io/) [ Engineering Blog
](https://heap.io/blog?categoryid=engi... | |
Client_Side/web-sdk9_27_0.txt |
OneSignalDeferred.push(function() {
OneSignal.login("EID");
});
## | |
Client_Side/web-sdk9_101_0.txt | Prompt users to subscribe to email
Displays the email subscription prompt. | |
Client_Side/web-sdk9_87_0.txt | Event occurs when the browser's native permission request has just been shown.
JavaScript | |
Client_Side/13713_37_0.txt | Labels
Help Wanted | |
Client_Side/14209_3_0.txt | Automate any workflow
* Packages | |
Client_Side/web-sdk9_120_0.txt |
OneSignalDeferred.push(function() {
OneSignal.User.PushSubscription.optOut();
});
## | |
Client_Side/14209_8_0.txt | Manage code changes
* Issues | |
Client_Side/Client_Side_3_1.txt | Disable Mobile Visualizer Pairing Gesture (iOS & Android)
Use this API to disable the default gesture for pairing with mobile Event
Visualizers.
` disableVisualizerPairingGesture ` disables the out-of-the-box pairing
gesture for mobile Event Visualizers. This can be called from production apps
to ensure that end use... | |
Client_Side/web-sdk9_4_1.txt | ize In-App Messages
* Example: In-App Message Tutorial
* Example: Create A Survey
* Example: Target Certain Android Manufacturers and Devices
* Email Messaging
* Design Emails with Drag and Drop
* Design Emails with HTML
* Email Auto Warm Up
* Sending Email Messages... | |
Client_Side/web-sdk9_6_0.txt | Suggest Edits
These methods serve as a reference and are just a single step in the setup
process. Make sure to follow the steps for your particular platform here: | |
Client_Side/web-sdk9_114_0.txt |
OneSignalDeferred.push(function() {
OneSignal.User.PushSubscription.id;
});
## | |
Client_Side/how-to-prompt-for-push-permissions-with-an-in-app-message7_4_1.txt | ize In-App Messages
* Example: In-App Message Tutorial
* Example: Create A Survey
* Example: Target Certain Android Manufacturers and Devices
* Email Messaging
* Design Emails with Drag and Drop
* Design Emails with HTML
* Email Auto Warm Up
* Sending Email Messages... | |
Client_Side/14209_12_0.txt | For
* Enterprise
* Teams
* Startups
* Education | |
Client_Side/web-sdk9_36_0.txt | Remove an alias from the current user.
JavaScript | |
Client_Side/how-to-prompt-for-push-permissions-with-an-in-app-message7_25_0.txt | This can always be changed later based on how often you want to prompt for
push.
Schedule when users will start seeing your in-app message and how often they
see it. | |
Client_Side/web-sdk9_53_0.txt | If you haven't set a default URL, your notification will open to the root of
your site by default.
JavaScript | |
Client_Side/web-sdk9_9_0.txt | You can add as many methods into the ` function() ` as desired.
The OneSignal SDK is loaded with the ` defer ` attribute on your page. For
example: | |
Client_Side/13713_3_0.txt | Automate any workflow
* Packages | |
Client_Side/web-sdk9_40_0.txt | * * *
# | |
Client_Side/Client_Side_14_1.txt | setAppId
Use this API to set the app ID where you'll be sending data. It can be used to
switch between projects or between your production and development
environments.
` setAppId ` initializes Heap tracking on iOS or React Native. It should be
called only once per app open. If it is called multiple times, it will
i... | |
Client_Side/13713_25_0.txt | Query
To see all available qualifiers, see our documentation . | |
Client_Side/13713_42_0.txt | In case you allow the notifications, the notifications options in the app
settings appears.
The only way to make it appear again is to select allow notifications at the
beginning.
---
The text was updated successfully, but these errors were encountered:
All reactions | |
Client_Side/web-sdk9_140_0.txt | Additional log levels
* ` 'trace' `
* ` 'debug' `
* ` 'info' `
* ` 'warn' `
* ` 'error' ` | |
Client_Side/14209_35_0.txt | ajouve opened this issue Aug 9, 2022 · 1 comment
Closed | |
Client_Side/web-sdk9_60_0.txt | Returns ` true ` if the current browser supports web push.
JavaScript | |
Client_Side/web-sdk9_127_0.txt | ##
Listen to changes on the push subscription | |
Client_Side/web-sdk9_41_0.txt | Data Tags
Data Tags are custom ` key : value ` pairs of string or number data you set
on users based on events or user data of your choosing. See Data Tags
Overview for more details on what tags are used for. | |
Client_Side/web-sdk9_2_0.txt | Log In Sign Up
v 11.2 | |
Client_Side/web-sdk9_58_0.txt | If a notification is created with a title, the specified title always
overrides this default title.
A notification's title defaults to the title of the page the user last
visited. If your page titles vary between pages, this inconsistency can be
undesirable. Call this to standardize page titles across notifications, a... | |
Client_Side/web-sdk9_25_0.txt | The ` login ` method identifies a user by setting the ` external_id ` alias.
Logging in a user with the OneSignal SDK will switch the context to that
specific user.
* If the ` external_id ` exists, the user will be retrieved, and the context will be set from that user information. If operations have already been ... | |
Client_Side/web-sdk9_117_0.txt | ##
Disable a push subscription | |
Client_Side/web-sdk9_111_0.txt | #
Push Subscription | |
Client_Side/web-sdk9_22_0.txt | * * *
# | |
Client_Side/web-sdk9_118_0.txt | Changes the subscription status of an opted-in push subscription to opted-out.
The push subscription cannot get push notifications anymore until ` optIn() `
is called or use Update subscription API with ` enabled: true ` .
This method does not remove or invalidate push tokens. It is designed for
sites that wish to... | |
Client_Side/13713_56_0.txt | 2 participants
## Footer | |
Client_Side/how-to-prompt-for-push-permissions-with-an-in-app-message7_24_0.txt | Recommended: If you want to show the prompt with less frequency, use
Multiple times with ` 9999 ` and a gap of ` 3 ` days in between. The first
number is how many times you want the message to show and the 2nd number is
the timeframe in which to wait before showing the message again.
In this case, if the user is u... | |
Client_Side/13713_47_0.txt | Copy link
Author | |
Client_Side/14209_48_0.txt | Labels
None yet | |
Client_Side/13713_23_0.txt | Cancel Submit feedback
# Saved searches | |
Client_Side/web-sdk9_98_0.txt | ##
Prompt users to subscribe to SMS messages | |
Client_Side/13713_54_0.txt | Milestone
No milestone | |
Client_Side/web-sdk9_28_0.txt | Log out a user (Remove an External ID)
Log out the user previously logged in via ` login ` . The ` user ` property
now references a new device-scoped user. A device-scoped user has no user
identity that can later be retrieved, except through this device, as long as
the app remains installed and the app data is not c... | |
Client_Side/web-sdk9_123_0.txt | 1. ` OneSignal.Notifications.permission ` is ` true ` .
2. the ` optOut() ` method was previously used.
JavaScript | |
Client_Side/web-sdk9_119_0.txt | The user's push subscription can only be opted-out if `
OneSignal.Notifications.permission ` is ` true ` .
JavaScript | |
Client_Side/14209_38_0.txt | ###
ajouve commented Aug 9, 2022 • | |
Client_Side/14209_16_0.txt | Fund open source developers
* The ReadME Project | |
Client_Side/web-sdk9_93_0.txt | ##
Prompt for notification permission | |
Client_Side/web-sdk9_37_0.txt |
OneSignalDeferred.push(function() {
OneSignal.User.removeAlias("ALIAS_LABEL");
});
## | |
Client_Side/14209_42_0.txt |
All reactions
Copy link | |
Client_Side/web-sdk9_85_0.txt | Parameter | Type | Description
---|---|---
` permission ` | boolean | The new permission state for push notifications
JavaScript
function permissionChangeListener(permission) {
if (permission) {
console.log(`permission accepted!`);
}
}
OneSignalDeferred.... | |
Client_Side/14209_30_0.txt | Additional navigation options
* Code
* Issues
* Pull requests
* Actions
* Projects
* Security
* Insights | |
Client_Side/web-sdk9_72_0.txt | Event Name | Description
---|---
` click ` | Occurs when the user taps or clicks on the notification.
` dismiss ` | Occurs when a notification is dismissed, such as swiping it away or clicking close on the notification.
` permissionChange ` | Occurs whenever a user changes their notification permission ... | |
Client_Side/web-sdk9_65_0.txt | If you're deleting your user entry on our online dashboard for testing, the
SDK will not sync with our dashboard and so this method will still return `
true ` (because the browser itself remembers the site's permissions). Follow
Clearing your cache and resetting push permissions to reset this in the
browser itself.
... | |
Client_Side/how-to-prompt-for-push-permissions-with-an-in-app-message7_15_0.txt | In-App Messages can be customized to your app's theme and how you like to
communicate. Use any wording to ask your users to subscribe and gauge their
interest. For more details see Design Your In-App Message .
The in-app message block editor allows you to create message asking users to
opt in to push notifications. | |
Client_Side/web-sdk9_108_0.txt | ##
Remove event handlers | |
Client_Side/14209_18_0.txt | * Topics
* Trending
* Collections
* Pricing | |
Client_Side/how-to-prompt-for-push-permissions-with-an-in-app-message7_4_0.txt | ## OneSignal
* Quickstart Guide
* Channel Setup
* Push Setup
* Email Setup
* Email Sending Domain Setup
* In-App Messages Setup
* SMS Setup
* Live Activities Setup
* Android Live Notifications (Beta)
* Flutter Live Activity Setup
* Developers
* Mobile SDK Set... | |
Client_Side/13713_11_0.txt | * All features
* Documentation
* GitHub Skills
* Blog
* Solutions | |
Client_Side/13713_29_0.txt | * Notifications
* Fork 367
* Star 1.6k
* Code
* Issues 80
* Pull requests 14
* Actions
* Projects 1
* Security
* Insights | |
Client_Side/web-sdk9_91_0.txt | ###
Prompt behavior | |
Client_Side/13713_39_0.txt | ###
ignacio-sanhueza-ml commented Mar 21, 2022 | |
Client_Side/Client_Side_0_1.txt | startEVPairing (iOS & Android)
This API starts the Event Visualizer pairing process. It may be used to
provide a custom method of initiating Event Visualizer pairing.
` startEVPairing ` begins the iOS and Android visual labeling pairing process.
It may be called to provide an alternate method of initiating visual la... | |
Client_Side/14209_34_0.txt | # Heading notification automatically displayed #1420
Closed | |
Client_Side/14209_0_0.txt | Skip to content
## Navigation Menu | |
pydantic/pydantic_1_6.txt | print(m)
#> id=123 name='James' signup_ts=None
try:
User.model_validate(['not', 'a', 'dict'])
except ValidationError as e:
print(e)
"""
1 validation error for User
Input should be a valid dictionary or instance of User [type=model_type, input_value=['not', 'a... | |
pydantic/64910_29_0.txt | * * Notifications
* Fork 1.7k
* Star 18.8k
* Code
* Issues 378
* Pull requests 13
* Discussions
* Actions
* Security
* Insights | |
pydantic/datetime6_0_0.txt | Skip to content
Pydantic V2 is here 🚀! Upgrading an existing app? See the Migration Guide
for tips on essential changes from Pydantic V1! | |
pydantic/models8_25_0.txt | See ` BaseModel ` for the class definition including a full list of methods
and attributes.
Tip | |
pydantic/64910_43_0.txt | * I confirm that I'm using Pydantic V2 installed directly from the ` main ` branch, or equivalent
### Description | |
pydantic/73572_33_0.txt | Already on GitHub? Sign in to your account
Jump to bottom | |
pydantic/64910_37_0.txt | # Zero-duration ` timedelta ` cannot be parsed #6491
miili opened this issue Jul 6, 2023 · 4 comments | |
pydantic/models8_122_0.txt | In many cases, arguments passed to the constructor will be copied in order to
perform validation and, where necessary, coercion.
In this example, note that the ID of the list changes after the class is
constructed because it has been copied during validation: | |
pydantic/73572_49_0.txt | ###
sydney-runkle commented Sep 6, 2023 | |
pydantic/73572_58_0.txt | No milestone
Development |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.