I am using the One Signal Push notification in my application. When my application is closed , which means that when I do not use my application, I receive a push notification from a single signal that is sent from my test group. But when I use the application , I have not received .
Your answer is more appreciated.
In the latest version ( 3.+@aar ) you should use inFocusDisplaying :
inFocusDisplaying
OneSignal.startInit(this) .inFocusDisplaying(OneSignal.OSInFocusDisplayOption.Notification) .init();
And you can install None and InAppAlert instead of Notification .
None
InAppAlert
Notification
Using this line, I can get a push notification, although my application is open.
Link to link
OneSignal.enableNotificationsWhenActive(true);
try it
window.plugins.OneSignal.enableInAppAlertNotification(true);
Source: https://habr.com/ru/post/1246758/More articles:Library-aware PreferenceFragment - javaHow to create random points in three-dimensional space? - c ++User adapter does not show data in ListView - javaWaiting time for the Transcavator to sync with the page after 11 seconds - angularjsDjango FormView vs CreateView - djangoAndroid GPS get current location - androidCRUD operations using DynamoDB with expressjs (node ââjs) - amazon-dynamodbAndroid Studio how to make 2 columns LinearLayout - androidSoundcloud API returns 403 error on some track information - soundcloudLaravel v5.2. * (V5.2.29) Auth :: guard ('api') â attempt ($ user) fatal error - phpAll Articles