id stringlengths 16 145 | text stringlengths 1 179k | title stringclasses 1
value |
|---|---|---|
Client_Side/13713_14_0.txt | Resources
* Learning Pathways
* White papers, Ebooks, Webinars
* Customer Stories
* Partners | |
Client_Side/13713_13_0.txt | By Solution
* CI/CD & Automation
* DevOps
* DevSecOps | |
Client_Side/web-sdk9_30_0.txt | ##
Add an alias | |
Client_Side/13713_32_0.txt | Sign up for GitHub
By clicking “Sign up for GitHub”, you agree to our terms of service and
privacy statement . We’ll occasionally send you account related emails. | |
Client_Side/14209_41_0.txt |
We recommend removing the following code and instead using an In-App Message to prompt for notification permission (See step 7)
And the step 7 is about ` Set Custom User Properties ` no ` using an In-App
Message to prompt for notification permission ` Thanks
---
The text was updated successfully... | |
Client_Side/how-to-prompt-for-push-permissions-with-an-in-app-message7_2_0.txt | Log In Sign Up
v 11.2 | |
Client_Side/14209_32_0.txt | Sign up for GitHub
By clicking “Sign up for GitHub”, you agree to our terms of service and
privacy statement . We’ll occasionally send you account related emails. | |
Client_Side/web-sdk9_95_0.txt |
OneSignalDeferred.push(function() {
OneSignal.Slidedown.promptPush();
});
## | |
Client_Side/Client_Side_10_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/13713_18_0.txt | * Topics
* Trending
* Collections
* Pricing | |
Client_Side/web-sdk9_23_0.txt | User
When your users subscribe to push notifications on your website, OneSignal
creates a User record ( ` onesignal_id ` ) and Subscription record ( `
subscription_id ` ). Users can have multiple subscription records which you
identify as belonging to a specific user through the use of the ` login `
method whic... | |
Client_Side/web-sdk9_82_0.txt | This event is fired on your page. If multiple browser tabs are open to your
site, this event will be fired on all pages on which OneSignal is active.
Parameter | Type | Description
---|---|---
` notification ` | Notification | The OneSignal notification ID of the notification that was just displayed.
... | |
Client_Side/web-sdk9_78_0.txt | This event is called prior to a notification being displayed. This event is
fired on your page. If multiple browser tabs are open to your site, this event
will be fired on all pages on which OneSignal is active.
Parameter | Type | Description
---|---|---
` notification ` | Notification | The notification... | |
Client_Side/web-sdk9_26_0.txt | > ## 📘
>
> External ID / Aliases
>
> ` external_id ` and other aliases can only be set for a subscription that
> has initially allowed notifications, and has a record in the OneSignal
> dashboard.
>
> It's best to wrap the ` login ` method within our
> pushSubscriptionChangeListener which triggers when the subscrip... | |
Client_Side/web-sdk9_7_0.txt | * Web Push Set Up
# | |
Client_Side/Client_Side_4_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/14209_43_0.txt | Contributor
### | |
Client_Side/how-to-prompt-for-push-permissions-with-an-in-app-message7_12_0.txt | In Messages > In-App edit the default Push Permission Prompt template or
create your own with the New In-App button.
Select the dropdown to create a new in-app message. | |
Client_Side/13713_17_0.txt | GitHub community articles
Repositories | |
Client_Side/how-to-prompt-for-push-permissions-with-an-in-app-message7_26_0.txt | * * *
# | |
Client_Side/14209_1_0.txt | Toggle navigation
Sign in | |
Client_Side/13713_52_0.txt | Labels
Help Wanted | |
Client_Side/13713_1_0.txt | Toggle navigation
Sign in | |
Client_Side/web-sdk9_46_0.txt |
OneSignalDeferred.push(function() {
OneSignal.setConsentRequired(true);
});
## | |
Client_Side/how-to-prompt-for-push-permissions-with-an-in-app-message7_18_0.txt | If users have previously denied push permission when shown the native prompt,
this button will open the device settings for your app.
To target Android 13+ users, ensure you are using a version of the OneSignal
SDK released after July 2022. Follow the Android 13 Push Notification
Developer Update Guide . | |
Client_Side/web-sdk9_8_0.txt | Setup
You may notice the need to wrap your OneSignal calls with `
OneSignalDeferred.push(function() { ... }) ` | |
Client_Side/14209_22_0.txt | We read every piece of feedback, and take your input very seriously.
Include my email address so I can be contacted | |
Client_Side/13713_24_0.txt | ## Use saved searches to filter your results more quickly
Name | |
Client_Side/web-sdk9_100_0.txt |
OneSignalDeferred.push(function() {
OneSignal.Slidedown.promptSms();
});
## | |
Client_Side/web-sdk9_129_0.txt | Parameter | Type | Description
---|---|---
` id ` | string | The push subscription id.
` token ` | string | The token used to target notifications.
` optedIn ` | boolean | False if the push permissions were denied or optOut() was called.
JavaScript
function pushSubscriptionC... | |
Client_Side/Client_Side_9_1.txt | track
Use this API to send custom events and associated metadata to Heap that we do
not automatically capture, such as purchase information, email sent, and more.
For best practices and examples of types of events you may want to track, see
the [ Custom Events ](https://help.heap.io/getting-started/setting-up-
heap/e... | |
Client_Side/web-sdk9_105_0.txt |
OneSignalDeferred.push(function() {
OneSignal.Slidedown.promptSmsAndEmail();
});
## | |
Client_Side/web-sdk9_12_0.txt | All arrays have a ` .push() function ` , so at this point, the `
OneSignalDeferred ` variable is simply an array of functions we're pushing on
to it. When the SDK finally loads, the SDK processes all the functions pushed
so far and redefines .push() .
## | |
Client_Side/web-sdk9_94_0.txt | Displays the notification permission prompt.
JavaScript | |
Client_Side/Client_Side_16_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/14209_25_0.txt | Query
To see all available qualifiers, see our documentation . | |
Client_Side/web-sdk9_130_0.txt | * * *
# | |
Client_Side/web-sdk9_131_0.txt | Email
OneSignal's Mobile and Web SDKs provide methods for collecting emails, logging
out of emails, and tracking email subscription changes. | |
Client_Side/web-sdk9_141_0.txt | * * *
Updated about 2 months ago | |
Client_Side/Client_Side_15_1.txt | resetIdentity
Use this API to reset a user’s identity to an anonymous state after they have
logged out. See [ Using Identify ](/docs/using-identify) for use cases when
managing identity across browsers and devices.
` heap.resetIdentity() ` resets a user's identity to a random anonymous user
ID. A new session for ano... | |
Client_Side/14209_33_0.txt | Already on GitHub? Sign in to your account
Jump to bottom | |
Client_Side/web-sdk9_81_0.txt | * A user purposely dismisses the notification without clicking the notification body or action buttons
* On Chrome on Android, a user dismisses all web push notifications (this event will be fired for each web push notification we show)
* A notification expires on its own and disappears
Note: This event doe... | |
Client_Side/web-sdk9_63_0.txt | This returns ` true ` when your site has permission to display notifications.
* This is just the sites's permission, does not factor in OneSignal's ` optOut ` status or the existence of the Subscription ID and Push Token, see ` OneSignal.User.PushSubscription ` for these. | |
Client_Side/13713_16_0.txt | Fund open source developers
* The ReadME Project | |
Client_Side/13713_36_0.txt | # Notification settings disappears when discarding the soft modal. #1371
ignacio-sanhueza-ml opened this issue Mar 21, 2022 · 2 comments | |
Client_Side/web-sdk9_112_0.txt | ##
Subscription ID | |
Client_Side/14209_14_0.txt | Resources
* Learning Pathways
* White papers, Ebooks, Webinars
* Customer Stories
* Partners | |
Client_Side/web-sdk9_75_0.txt | Notification clicked
This event will fire when the notification's body/title or action buttons are
clicked. | |
Client_Side/13713_44_0.txt | Contributor
### | |
Client_Side/web-sdk9_57_0.txt | JavaScript
OneSignalDeferred.push(function() {
OneSignal.Notifications.setDefaultTitle("Powered by OneSignal!");
});
| |
Client_Side/14209_9_0.txt | Plan and track work
* Discussions | |
Client_Side/web-sdk9_4_2.txt | r
* Troubleshooting Cordova Variants
* Troubleshooting Xamarin
* Mismatched Push Certificate
* Mismatched User Environment
* Mismatched Bundle ID
* Android Mismatched Users
* Bundle / Certificate Mismatch
* Invalid Push Certificate
* Invalid Google Credenti... | |
Client_Side/web-sdk9_137_0.txt | ##
Set the log level | |
Client_Side/web-sdk9_1_0.txt | * * *
Log In Sign Up | |
Client_Side/14209_28_0.txt | {{ message }}
OneSignal / react-native-onesignal Public | |
Client_Side/web-sdk9_45_0.txt | Determines whether users must consent to privacy before sending their data to
OneSignal. This should be set to ` true ` to ensure compliance before
invoking the init method.
JavaScript | |
Client_Side/how-to-prompt-for-push-permissions-with-an-in-app-message7_10_0.txt | * if present, remove the push prompting methods .
* if present, remove any other reference to iOS native API ` requestAuthorizationWithOptions ` .
* if present, remove any other reference to Android native API ` requestPermissions ` with ` android.permission.POST_NOTIFICATIONS `
Also, make sure you have t... | |
Client_Side/web-sdk9_69_0.txt | Listen to events on the notification
You can hook into the notification life-cycle by attaching your event handlers
to a notification event. Calling ` addEventListener ` lets you add an
arbitrary number of event handlers for notification events. | |
Client_Side/web-sdk9_35_0.txt | ##
Remove an alias | |
Client_Side/web-sdk9_73_0.txt | Removes the event handler for the given event.
JavaScript | |
Client_Side/14209_37_0.txt | ## Comments
Copy link | |
Client_Side/web-sdk9_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/web-sdk9_109_0.txt | Removes an event listener for the ` slidedownShown ` event.
JavaScript | |
Client_Side/13713_49_0.txt | Hello! thanks for the answer. So I will go for showing always the soft prompt,
since you can only show once the native one.
Once again, thanks for your answer!
---
All reactions
Sorry, something went wrong. | |
Client_Side/13713_51_0.txt | Assignees
No one assigned | |
Client_Side/Client_Side_2_1.txt | changeInterval (iOS)
This API changes the frequency with which events are sent back to the Heap
server from an iOS mobile device.
Objective-C Swift
// Change interval to send data every 25 seconds
[Heap changeInterval:25.0];
// Change interval to send data every 25 seconds
... | |
Client_Side/web-sdk9_19_0.txt | Parameter | Type | Description
---|---|---
` disable ` | Boolean | Disables sending a welcome notification to new site visitors. If you want to disable welcome notifications, this is the only option you need.
` title ` | String | The welcome notification's title. You can localize this to your own lang... | |
Client_Side/Client_Side_7_1.txt | stopEVPairing (iOS & Android)
This API stops the Event Visualizer pairing process.
` stopEVPairing ` stops the iOS and Android Event Visualizer pairing process.
It may be called to explicitly shut down the pairing process.
> ## 📘
>
> Only select versions of our mobile SDKs support visual labeling. For more
> info... | |
Client_Side/Client_Side_14_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/13713_57_0.txt | © 2024 GitHub, Inc.
### Footer navigation | |
Client_Side/13713_50_0.txt | ignacio-sanhueza-ml closed this as completed Mar 22, 2022
Sign up for free to join this conversation on GitHub . Already have an
account? Sign in to comment | |
Client_Side/14209_5_0.txt | Find and fix vulnerabilities
* Codespaces | |
Client_Side/14209_15_0.txt | * Open Source
* GitHub Sponsors | |
Client_Side/13713_33_0.txt | Already on GitHub? Sign in to your account
Jump to bottom | |
Client_Side/web-sdk9_107_0.txt | JavaScript
function slidedownEventListener(wasShown) {
console.log(`Slidedown shown event ${wasShown}`);
}
OneSignalDeferred.push(function() {
OneSignal.Slidedown.addEventListener("slidedownShown", slidedownEventListener);
});
| |
Client_Side/14209_11_0.txt | * All features
* Documentation
* GitHub Skills
* Blog
* Solutions | |
Client_Side/web-sdk9_0_0.txt | Jump to Content
Home Guides Server REST API Reference Changelog v9.0 v11.2 | |
Client_Side/13713_21_0.txt | Search syntax tips
# Provide feedback | |
Client_Side/web-sdk9_122_0.txt | This method does not trigger the website prompts and does not set or validate
push tokens. It is designed for sites that wish to have more granular control
of which users receive notifications, such as when implementing notification
preference pages.
The user's push subscription can only be changed back to opted-in if... | |
Client_Side/14209_45_0.txt | Hi @ajouve , Thanks for reporting the numbering issue with our
documentation. As for the Heading popup, we don't send this to users. It
looks like an in-app message. Can you confirm this isn't an existing OneSignal
in-app message set up for your app ID? Or something else unique to your app?
---
All reactio... | |
Client_Side/web-sdk9_51_0.txt | Push Notifications
## | |
Client_Side/14209_40_0.txt |
import OneSignal from 'react-native-onesignal';
// OneSignal Initialization
OneSignal.setAppId('XXX');
// promptForPushNotificationsWithUserResponse will show the native iOS or Android notification permission prompt.
// We recommend removing the following code and instead using a... | |
Client_Side/web-sdk9_31_0.txt | Set an alias for the current user. If the alias label exists on this user, it
will be overwritten.
JavaScript | |
Client_Side/web-sdk9_47_0.txt | Provide user consent
Sets whether privacy consent has been granted. | |
Client_Side/web-sdk9_92_0.txt | When declined , future calls will be ignored for at least three days.
Further declines will lengthen the time required to elapse before prompting
the user again – refer to our guide for more info on dismissing web promps .
To override this back-off behavior to prompt the user again, you can pass `
{force: true} `... | |
Client_Side/web-sdk9_126_0.txt | JavaScript
OneSignalDeferred.push(function() {
OneSignal.User.PushSubscription.optedIn;
});
| |
Client_Side/Client_Side_0_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/14209_17_0.txt | GitHub community articles
Repositories | |
Client_Side/13713_26_0.txt | Cancel Create saved search
Sign in | |
Client_Side/how-to-prompt-for-push-permissions-with-an-in-app-message7_28_0.txt | Updated about 2 months ago
* * * | |
Client_Side/Client_Side_15_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_34_0.txt | JavaScript
const aliases = {
ALIAS_LABEL_01: "ALIAS_ID_01",
ALIAS_LABEL_02: "ALIAS_ID_02",
ALIAS_LABEL_03: "ALIAS_ID_03",
};
OneSignalDeferred.push(function() {
OneSignal.User.addAliases(["ALIAS_LABEL_01": "ALIAS_ID_01", "ALIAS_LABEL_02": "ALIAS_ID_02"]);
});
... | |
Client_Side/how-to-prompt-for-push-permissions-with-an-in-app-message7_3_0.txt | Home Guides Server REST API Reference Changelog
Loading… | |
Client_Side/web-sdk9_96_0.txt | Prompt with Categories
Displays the notification permission prompt for notification categories. | |
Client_Side/web-sdk9_125_0.txt | Check push subscription status
Returns ` true ` or ` false ` based on the current push subscription status. | |
Client_Side/14209_26_0.txt | Cancel Create saved search
Sign in | |
Client_Side/web-sdk9_54_0.txt |
OneSignalDeferred.push(function() {
OneSignal.Notifications.setDefaultUrl("https://onesignal.com");
});
To set the default URL for notifications, provide a valid URL that you want to
be launched when the notification is clicked. This default URL will be used if
no other URL is specifi... | |
Client_Side/how-to-prompt-for-push-permissions-with-an-in-app-message7_19_0.txt | See the In-app Message Click Actions guide for more details on adding a Push
Permission Prompt, Location Permission Prompt, and more.
The in-app message block editor allows you to add a click action to a button
to prompt for push permission. | |
Client_Side/web-sdk9_89_0.txt | #
Slidedown Prompts | |
Client_Side/Client_Side_6_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... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.