Closed PterPmnta closed 7 years ago
@PterPmnta OneSignal should always be initialized with the start of your app as a number of things depend on this. This includes the SDK ensure the push token is up to date, session counts and duration, and state is synced including tags.
You can set kOSSettingsKeyAutoPrompt
to false
with iOSSettings
so the user does not get prompted right away by initializing OneSignal. So Android users are not auto subscribed you can call setSubscription
with false
.
Confirming the Android 5 and 6 issue. Your test devices are no longer subscribing even when you fully uninstall and re-install the app on the device? Can you try calling OneSignal.setLogLevel
with logLevel
set to 6
and check for any errors? Feel free to attach the logcat here or send it to OneSignal support to look it over.
@jkasten2 i solved, create a new project with Ionic 1, and check the config.xml
, and see the path
and other configs.
@PterPmnta Good to hear!
I'm integrating the push-notifications in my hybrid application developed in Ionic v1, but I have encountered a somewhat strange problem, and is that users with android version 5 or higher are not subscribing to the OneSignal platform.
I have a phone that has Android 4.2.2, and everything works to normal, subscribes, and everything works. Some days ago, you could subscribe to a phone which proved that it had Android 6.0.1, but then stopped, and the same with Android 5, which already performed the test.
Tests made to deduce and problem
Even so, the problem persists, they do not subscribe to the platform.
Changes made in the app
Code
Note: I do not want the subscription to perform at the moment of starting the application, since no one should receive them, if it is not logged in.