No Subscribers Troubleshooting
The following are all reasons why you may not see users on the dashboard after installing your SDK:
Incorrect OneSignal AppID
Double check you're passing the correct id to OneSignal init in your app's code. Your app id is shown in Keys & IDs.
OneSignal Init isn't called
Add logging before and after you call OneSignal init. To make sure the code is running. See our SetLogLevel Method for details on adding logging.
Device Logs show errors
Check the device log for any errors or warnings.
Android - Check the logcat in Android Studio or Eclipse. You can also run ddms found in <android-sdk>/tools/ddms
or run adb logical
iOS - Open Xcode and go to Window -> Devices. Select your device on the right then the log will show on the bottom. If you don't see the log click the small up arrow on the bottom of the window.
iOS
Required Capabilities - Make sure "Push Notifications" are enabled in your Xcode project. To do this, select the root project and under the Capabilities tab enable "Push Notifications", and then enable "Background Modes" and check "Remote notifications".
App Permissions - If you did not get a prompt asking for notification permissions make sure it is enabled for you app under System Settings > Notifications.
Logs - Check the Xcode log for any errors or warnings.
Simulator - You must run on a real device, the simulator can not subscribe for push notifications due to Apple's restrictions.
Other Plugins / SDKs - Other plugins or SDKs that also include push notifications can interfere with registering. Try temporarily removing them.
Android
Google Play services - Make sure this is installed under Settings > App
Emulator - We recommend testing on a real device, over using an emulator. If you using AVD in the AndroidSDK make sure the "Target" has "Google APIs" in the name and is API Level 19 or greater.
Log - See the device's logcat for any errors or warnings.
Enable OneSignal Logging - Look for the SetLogLevel function in API Reference for the SDK you using to enable.
Updated almost 4 years ago