id stringlengths 16 145 | text stringlengths 1 179k | title stringclasses 1
value |
|---|---|---|
Client_Side/14209_52_0.txt | 2 participants
## Footer | |
Client_Side/web-sdk9_80_0.txt | Notification dismissed
This event occurs when: | |
Client_Side/14209_44_0.txt | nan-li commented Aug 12, 2022 •
edited | |
Client_Side/web-sdk9_43_0.txt | #
Privacy | |
Client_Side/Client_Side_6_1.txt | removeEventProperty
Use this API to stop a single event property from getting attached to all
subsequent events. This API is usually called in relation to
addEventProperties.
JavaScript TypeScript Objective-C Swift Java Kotlin
heap.removeEventProperty('Logged In');
heap.removeE... | |
Client_Side/13713_40_0.txt | Description: When asking for permissions, and using the soft prompt, if the
"Maybe later" button is pressed to dismiss the soft prompt, the notifications
setting disappears, so the user cannot change from their settings to
allow/deny notifications. Environment react-native: 0.63.4
react-native-onesignal: 4.3.1 In... | |
Client_Side/web-sdk9_13_0.txt | Initialize the SDK
This should be called only once during application startup. | |
Client_Side/13713_19_0.txt | Search or jump to...
# Search code, repositories, users, issues, pull requests... | |
Client_Side/13713_2_0.txt | * Product
* Actions | |
Client_Side/web-sdk9_62_0.txt | Get notification permission status
Determine whether your site has notification permission. | |
Client_Side/web-sdk9_42_0.txt | See Data Tag Implementation for SDK Method details.
* * * | |
Client_Side/web-sdk9_11_0.txt | ` window.OneSignalDeferred = window.OneSignalDeferred || []; `
This creates a ` OneSignalDeferred ` variable, and if OneSignal is already
loaded, it's then assigned to the loaded instance. Otherwise, the OneSignal
variable equals an empty array - ` [] ` . | |
Client_Side/web-sdk9_74_0.txt |
function eventListener(event) { // ... }
OneSignalDeferred.push(function() {
OneSignal.Notifications.removeEventListener("eventname", eventListener);
});
## | |
Client_Side/web-sdk9_132_0.txt | See Email SDK Methods for more details.
* * * | |
Client_Side/14209_23_0.txt | Cancel Submit feedback
# Saved searches | |
Client_Side/Client_Side_11_1.txt | userID
Retrieve the current user’s ID. This API is read-only and is primarily used to
[ QA Events With Live View ](https://help.heap.io/define-analyze/data-
management/qa-events-with-live-view/) .
JavaScript TypeScript Objective-C Swift Java Kotlin
var userId = heap.userId;
var identity = hea... | |
Client_Side/13713_31_0.txt | New issue
Have a question about this project? Sign up for a free GitHub account to open
an issue and contact its maintainers and the community. | |
Client_Side/web-sdk9_66_0.txt | Request notification permission
Requests push notifications permission via the native browser prompt. | |
Client_Side/web-sdk9_21_0.txt | JavaScript
<script src="https://cdn.onesignal.com/sdks/web/v16/OneSignalSDK.page.js" defer></script>
<script>
window.OneSignalDeferred = window.OneSignalDeferred || [];
OneSignalDeferred.push(function(OneSignal) {
OneSignal.init({
appId: "99397374-10fe-4865-b62d-d8b71114b320",
... | |
Client_Side/Client_Side_10_1.txt | sessionId
API method to retrieve session ID from your Android app. This API can be used
to tie Heap session data to data from external sources.
Java Kotlin
String sessionId = Heap.getSessionId();
val sessionId = Heap.getSessionId()
| |
Client_Side/13713_12_0.txt | For
* Enterprise
* Teams
* Startups
* Education | |
Client_Side/14209_27_0.txt | Sign up
You signed in with another tab or window. Reload to refresh your session.
You signed out in another tab or window. Reload to refresh your session.
You switched accounts on another tab or window. Reload to refresh your
session. Dismiss alert | |
Client_Side/13713_20_0.txt | Search
Clear | |
Client_Side/web-sdk9_110_0.txt |
function slidedownEventListener(didShow) { // ... }
OneSignalDeferred.push(function() {
OneSignal.Slidedown.removeEventListener(slidedownEventListener);
});
* * * | |
Client_Side/Client_Side_1_1.txt | Client-side APIs Overview
You can use our client-side APIs to:
* Bring in additional data that Heap does not autocapture, including custom events and properties
* Manage user identity across browsers, sessions, and in situations where multiple users are accessing the same device
* Capture mobile events via t... | |
Client_Side/web-sdk9_106_0.txt | Listen to events on the Slidedown prompt
Adds an event listener for the ` slidedownShown ` event. The listener
function takes a boolean parameter. | |
Client_Side/web-sdk9_18_0.txt | Init ` welcomeNotification ` parameters
Pass in these optional parameters within ` welcomeNotification ` when
initializing to customize or disable the welcome notification sent to new site
visitors. Any person visiting your site for their first time, or an existing
user who has completely cleared their cache is cons... | |
Client_Side/14209_36_0.txt | # Heading notification automatically displayed #1420
ajouve opened this issue Aug 9, 2022 · 1 comment | |
Client_Side/Client_Side_13_1.txt | init
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.
` init ` initializes Heap tracking on Android. It should be called only once
per app open.
Java Kotlin
Heap.init(getApplicationContext(... | |
Client_Side/14209_13_0.txt | By Solution
* CI/CD & Automation
* DevOps
* DevSecOps | |
Client_Side/how-to-prompt-for-push-permissions-with-an-in-app-message7_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_79_0.txt |
function foregroundWillDisplayListener(event) {
console.log(`notification will display: ${notification}`);
}
OneSignalDeferred.push(function() {
OneSignal.Notifications.addEventListener("foregroundWillDisplay", foregroundWillDisplayListener);
});
## | |
Client_Side/how-to-prompt-for-push-permissions-with-an-in-app-message7_9_0.txt | Preparing for Setup
Before getting set up, check that you do not show the native prompt: | |
Client_Side/how-to-prompt-for-push-permissions-with-an-in-app-message7_20_0.txt | #
Triggers | |
Client_Side/13713_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/web-sdk9_68_0.txt |
OneSignalDeferred.push(function() {
OneSignal.Notifications.requestPermission();
});
## | |
Client_Side/web-sdk9_59_0.txt | ##
Check for push support | |
Client_Side/web-sdk9_50_0.txt | * * *
# | |
Client_Side/web-sdk9_5_0.txt | # Web SDK
OneSignal frontend website SDK. | |
Client_Side/13713_28_0.txt | {{ message }}
OneSignal / react-native-onesignal Public | |
Client_Side/web-sdk9_55_0.txt | In the case of Safari, the default notification icon URL will be set to the
Site URL that you have specified in your Safari settings, as this function is
not available.
## | |
Client_Side/Client_Side_2_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_84_0.txt | Notification permission changed
Event occurs when the user clicks Allow or Block or dismisses the browser's
native permission request. | |
Client_Side/14209_29_0.txt | * Notifications
* Fork 367
* Star 1.6k
* Code
* Issues 80
* Pull requests 14
* Actions
* Projects 1
* Security
* Insights | |
Client_Side/14209_51_0.txt | Development
No branches or pull requests | |
Client_Side/web-sdk9_97_0.txt | JavaScript
OneSignalDeferred.push(function() {
OneSignal.Slidedown.promptPushCategories();
});
| |
Client_Side/13713_27_0.txt | Sign up
You signed in with another tab or window. Reload to refresh your session.
You signed out in another tab or window. Reload to refresh your session.
You switched accounts on another tab or window. Reload to refresh your
session. Dismiss alert | |
Client_Side/14209_2_0.txt | * Product
* Actions | |
Client_Side/14209_19_0.txt | Search or jump to...
# Search code, repositories, users, issues, pull requests... | |
Client_Side/web-sdk9_139_0.txt |
OneSignal.Debug.setLogLevel(“trace”);
### | |
Client_Side/14209_46_0.txt | ajouve closed this as completed Sep 2, 2022
Sign up for free to join this conversation on GitHub . Already have an
account? Sign in to comment | |
Client_Side/web-sdk9_52_0.txt | Set a default launch URL
Sets the default URL for notifications. | |
Client_Side/how-to-prompt-for-push-permissions-with-an-in-app-message7_5_0.txt | # How to Prompt for Push Permissions with In-App Messages
Use in-app messages to prompt users to subscribe to push notifications the
right way. | |
Client_Side/web-sdk9_124_0.txt |
OneSignalDeferred.push(function() {
OneSignal.User.PushSubscription.optIn();
});
## | |
Client_Side/14209_21_0.txt | Search syntax tips
# Provide feedback | |
Client_Side/how-to-prompt-for-push-permissions-with-an-in-app-message7_22_0.txt | #
Schedule and Re-Trigger | |
Client_Side/how-to-prompt-for-push-permissions-with-an-in-app-message7_0_0.txt | Jump to Content
Home Guides Server REST API Reference Changelog v9.0 v11.2 | |
Client_Side/14209_20_0.txt | Search
Clear | |
Client_Side/web-sdk9_83_0.txt |
function notificationDismissedListener(event) {
console.log(`dismiss event: ${event}`);
}
OneSignalDeferred.push(function() {
OneSignal.Notifications.addEventListener("dismiss", notificationDismissedListener);
});
## | |
Client_Side/web-sdk9_48_0.txt | If your website is set to require the user's privacy consent or some action
before they can subscribe to push, add ` requiresUserPrivacyConsent: true `
property in the OneSignal init call . This will stop our SDK from
initializing until you call ` provideUserConsent(true) ` .
You can also revoke consent by setting ... | |
Client_Side/web-sdk9_136_0.txt | Debugging
Enable logging to help debug if you run into an issue setting up OneSignal.
This selector is static, so you can call it before initializing OneSignal. For
more info, see Debugging with Browser DevTools . | |
Client_Side/14209_31_0.txt | New issue
Have a question about this project? Sign up for a free GitHub account to open
an issue and contact its maintainers and the community. | |
Client_Side/web-sdk9_99_0.txt | Displays the SMS subscription prompt.
JavaScript | |
Client_Side/14209_47_0.txt | Assignees
No one assigned | |
Client_Side/web-sdk9_77_0.txt | ##
Notification will display | |
Client_Side/13713_41_0.txt |
const { hasNotificationPermission, isSubscribed } =
await OneSignal.getDeviceState();
if (!hasNotificationPermission || !isSubscribed) {
OneSignal.addTrigger('prompt_ios', 'true');
}
2. When the soft prompt is shown, it has 2 buttons, one with the action Pu... | |
Client_Side/14209_6_0.txt | Instant dev environments
* Copilot | |
Client_Side/web-sdk9_142_0.txt | * * *
* Table of Contents
* * Setup
* Initialize the SDK
* Init ` notifyButton ` parameters
* User
* Log in a user (Set an External ID)
* Log out a user (Remove an External ID)
* Add an alias
* Add multiple aliases
* Remove an alias
* Remove multipl... | |
Client_Side/13713_6_0.txt | Instant dev environments
* Copilot | |
Client_Side/14209_7_0.txt | Write better code with AI
* Code review | |
Client_Side/Client_Side_5_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_61_0.txt |
OneSignalDeferred.push(function() {
const isSupported = OneSignal.Notifications.isPushSupported();
});
## | |
Client_Side/Client_Side_8_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/how-to-prompt-for-push-permissions-with-an-in-app-message7_23_0.txt | Finally, you can schedule the message to start showing.
If you want to be aggressive with your prompting, select "Every time trigger
conditions are satisfied" which will show the prompt almost every time the
unsubscribed users opens the app, based on the triggers set. | |
Client_Side/web-sdk9_76_0.txt | Parameter | Type | Description
---|---|---
` notification ` | Notification | An object describing the notification that was clicked.
` result ` | NotificationClickResult | An object containing the actionId of the click and the launch url of the click.
JavaScript
function clickEven... | |
Client_Side/web-sdk9_128_0.txt | The change listener is fired when any of the fields on the subscription
change. The event includes both the current and the previous state.
Parameter | Type | Description
---|---|---
` previous ` | PushSubscriptionNamespaceProperties | The old push subscription state
` current ` | PushSubscriptionNames... | |
Client_Side/web-sdk9_135_0.txt | * * *
# | |
Client_Side/web-sdk9_49_0.txt | JavaScript
OneSignalDeferred.push(function() {
OneSignal.setConsentGiven(true);
});
| |
Client_Side/how-to-prompt-for-push-permissions-with-an-in-app-message7_16_0.txt | #
Add Push Permission Prompt Action | |
Client_Side/14209_50_0.txt | Milestone
No milestone | |
Client_Side/web-sdk9_64_0.txt | JavaScript
OneSignalDeferred.push(function() {
let permission = await OneSignal.Notifications.permission; // boolean
});
| |
Client_Side/web-sdk9_20_0.txt | Pass in these optional parameters within ` notifyButton ` when initializing
to enable and customize the Subscription Bell (formerly known as the notify
button). All parameters below are optional. If not set, they will be replaced
with their defaults.
Parameter | Type | Description
---|---|---
` enable ` | B... | |
Client_Side/web-sdk9_10_0.txt | ` <script src="https://cdn.onesignal.com/sdks/web/v16/OneSignalSDK.page.js"
defer></script> `
This means the OneSignal code will execute after the HTML document has been
fully parsed, preventing any blocking of the site by the OneSignal SDK.
However, this presents a problem for page scripts that depend on the `
OneSi... | |
Client_Side/web-sdk9_38_0.txt | Remove multiple aliases
Remove aliases from the current user. | |
Client_Side/web-sdk9_90_0.txt | Display the OneSignal Slide Prompt on your sites. This type of prompt slides
down from the top of the browser viewport on Desktop and up from the bottom on
mobile devices. For more details, please refer to Prompting behavior if
declined .
> ## 📘
>
> Does not replace native browser prompt
>
> This does not replace ... | |
Client_Side/web-sdk9_86_0.txt | ##
Notification permission prompt displayed | |
Client_Side/Client_Side_1_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_33_0.txt | Add multiple aliases
Set aliases for the current user. If any alias labels exist on the user, they
will be overwritten. | |
Client_Side/web-sdk9_103_0.txt | ##
Prompt users to subscribe to email and SMS simultaneously | |
Client_Side/how-to-prompt-for-push-permissions-with-an-in-app-message7_29_0.txt | * Table of Contents
* * Preparing for Setup
* Set Up The In-App Message
* Set Up Your Message
* Add Push Permission Prompt Action
* Triggers
* Schedule and Re-Trigger
* Programmatically Triggering the Native Permission Prompt
| |
Client_Side/13713_38_0.txt | ## Comments
Copy link | |
Client_Side/web-sdk9_88_0.txt |
function promptListener() {
console.log(`permission prompt dispslayed event: ${event}`);
}
OneSignalDeferred.push(function() {
OneSignal.Notifications.addEventListener("permissionPromptDisplay", promptListener);
});
* * * | |
Client_Side/web-sdk9_113_0.txt | The user's push subscription ID. See Subscriptions for more details.
JavaScript | |
Client_Side/Client_Side_16_1.txt | addEventProperties
Use this API to send stateful information into Heap as a set of global key-
value pairs that get attached to all of a user's subsequent events.
As a best practice, we recommend calling ` clearEventProperties ` before `
addEventProperties ` on every page. This removes all previous event propertie... | |
Client_Side/14209_53_0.txt | © 2024 GitHub, Inc.
### Footer navigation | |
Client_Side/web-sdk9_70_0.txt | JavaScript
function eventListener(event) {
console.log(`${event}`);
}
OneSignalDeferred.push(function() {
OneSignal.Notifications.addEventListener("eventname", eventListener);
});
| |
Client_Side/Client_Side_7_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_24_0.txt | ## Use saved searches to filter your results more quickly
Name | |
Client_Side/13713_34_0.txt | # Notification settings disappears when discarding the soft modal. #1371
Closed | |
Client_Side/web-sdk9_67_0.txt | Web SDK v15 see ` showNativePrompt ` method .
JavaScript |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.