iOS app seems to register as Android device using Bluemix Push Cordova plugin - ibm-cloud

I am trying to run the sample for bluemix push cordova app from here:
I am able to install the sample on the iOS device and when I click the register button, getting the following response:
{"createdTime":"2016-08-23T10:53:26Z","lastUpdatedTime":"2016-08-23T10:53:26Z","createdMode":"API","deviceId":"xxxxxx-xxxx-xxxxxx","userId":"anonymous","token":"xxxx-xxxxx-xxxxx","platform":"A","href":"https://xxxxxx.ng.bluemix.net/imfpush/v1/apps/xxxxxx/devices/xxxxxx"}
In the response I can see that
"platform":"A"
which might be suggesting that the device is registering itself as Android device.
When i tried to push a test message to the app from Bluemix console to iOS devices, it says "No Devices Found". That not the case for Android. I am able to receive the push to Android device.

'A' refers to an iOS device (tag being Apple) rather than a Google Android device ('G'). This can be seen on the REST API by selecting the 'Model' view rather than the 'Model Schema' view.
platform (string, optional):
The device platform. 'A' refers to Apple(iOS) devices and 'G' refers to Google(Android) devices. = ['A', 'G']
string
Enum: "A", "G"
Regarding the failure to receive push notifications on iOS I would make certain that your APNs certificate is valid and properly configured. If a push is attempted by Bluemix and APNs responds that the device token is invalid due to a certificate issue then it is pruned from the device list to prevent further failed attempts which may be why you are seeing the 'No Devices Found' error.
If everything looks good with your certificate please let us know your Push Service GUID (found on the Mobile Options button in your Push Dashboard's configure page) so we can investigate further.

Related

Android Device Verification not working in Flutter

I am trying to do get OTP without Verifying you are not a robot screen using firebase in a flutter.
I added the SHA-256 key in firebase and enabled the Android Device Verification in console developer google. But still after entering the phone number for OTP that Verifying you are not a robot screen was showing and redirecting to the app. Did I miss something or it will take time to activate Android Device Verification.
Make sure your app is Registered via SafetyNet at:
Firebase Console > Project Settings > App Check > Your app
Secondly, try to test it on a real device. If you are testing phone authentication on an emulator then reCAPTCHA screen will be still shown but for real devices it won’t be shown anymore as stated in the official documentation.
Addition: It will always be shown in rooted devices.
Edit: If this is happening only to your playstore downloaded application, then you probably didn't add your playstore signing SHA1 and SHA256 to your firebase.
Go to your playstore account, app signing under integrity and copy these keys and add them to your firebase project.

how to get device information on Android app from IBM bluemix

I have created an app using IOT boilerplate in IBM Bluemix and added a devices as described in http://www.ibm.com/developerworks/cloud/library/cl-mqtt-bluemix-iot-node-red-app/.
I have following queries
Is there a way I can retrieve devices information (Authentication Token, Organization ID) from my Android app. As at present, after creating the devices I need to fill this information manually in my Android app which may not be feasible in real life scenario.
Is there a way I can create this device on IBM Bluemix from Android App.
Regards,
Sengar
You can register a new device via the HTTP API. With this your android app can register it's self and will be given the required tokens to log into the service.

Push enabled app is not listed in the Notification section in the device

Am converting apk to bar with push feature with reference of the below url,
http://developer.blackberry.com/android/apisupport/creating_push-enabled_android_apps.html.
I installed the app in Blackberry Z10 and getting the device token. But my installed app is not listing the notification enabled apps section.
Is there any other parameter to be added "android.cfg" file to make it push enabled app ?
Thanks in advance,
JRH
If your app is push enabled then it is not automatically added to the notification section of BlackBerry settings. You have to implement notifications.
Notifications

Apple APNS Device Token

We have table where Apple Device tokens are stored. This tables are different for testing and and for live application. I want to update this database manually with my iPhone device token for testing purpose.
Is there anyway I can read the device token from my iPhone.
Note: I do not hava MAC machine.
There's a tutorial here of how to get the device token, however it requires that your test application be added some code for you to run.
Tutorial link
If in case you have the code, try putting a log for the device token in the
didRegisterForRemoteNotificationsWithDeviceToken and then check the log in your phone using a console app.

Want to check Apple push notification Service on my device?

I have created iphone application which support Apple push notification service.
I also configured the server on windows which sends my device id to apple server.
I gets device ID whenever I launch application. But still i wont get any notification from
apple server, where notifications were also send to apple server from my local windows
server.
How should I check where my APN application is going wrong? Bcoz on server side, server didnt get any error message during sending messages to APN server, also on my iphone application I have properly registered for remote notifications. But still I dont get any notifications. Please help
If your application is not working for you, iron out you problems before letting third parties test your application. If your having trouble receiving notifications it won't be any better for the testers.
As how to actually beta test your app. Go to a commercial outfit or ad hoc by:
Have all testers submit their devices UDID as listed on the "Summary" tab from the device page in the iTunes application (click "serial number" to display the UDID).
Enter all UDID's into the device list on your iTunes Connect account.
Create a new provisioning profile with all your testers devices enabled.
Export your new app provisioning profile to xCode and rebuild.
Send the provisioning profile and fresh app to your testers instruction them to drop both on iTunes to install it on their iPhone.
Really, really thank your testers for their hard work.