If you see the "Your provisioning profile does not have APS entry." error message, make sure your provisioning profile is push compatible and has the
aps-environment string in it with the
development value. The easiest way to check is to open the mobile provisioning profile in any text editor and look for the
aps-environment string. It should be there.
If it is, and you keep receiving the error, it means that XCode still picks a "non push-compatible" profile. Please make sure you sign with the right one - sometimes if you have two profiles for the same App ID XCode messes things up and signs with the old one.
The recommended steps are:
Remove all XCode profiles;
Add the one and only new profile;
Rebuild the app.
iOS device push tokens are strings with 64 hexadecimal symbols. Push token example:
Make sure that iOS push tokens you use when targeting specific devices in your API requests are in lower case.
Pushwoosh uses IDFV as the device HWID. Note that it may change in case user re-installs all apps from a specific vendor.
By default our latest iOS SDK displays the notification banner when the app is running in the foreground. You can control this behavior by changing the following flags in the Info.plist:
Pushwoosh_ALERT_TYPE – string type, values are:
BANNER – default value, displays banner in-app alert
ALERT – alert notification
NONE – do not show notifications when the app is in the foreground
To get your iOS device push token,
Open Xcode => Devices & Simulators;
Connect the test device to your computer;
Select your connected device in the list of devices on the left;
Click the up-triangle at the bottom left to view device console.
Launch the application for which you need the device push token, and locate your 64 hexadecimal characters device push token in the “Registered for push notifications” line:
It is an expected behavior - badges are handled by iOS itself and its values are stored in application preferences, which are not instantly removed when you uninstall your app. A badge value remains there for some time in case of immediate re-installation, resulting in the same badges shown after an app is re-installed.