Invalid key in checkin plist: GMSInstanceIDDeviceDataVersion - ios

So I followed google's GCM for iOS tutorial here but for some reason it wouldn't send notifications to my phone.
I successfully registered with GCM when it asked on my device and when I send the message via their demo, it says it was sent successfully but it unfortunately was never received.
2016-04-12 20:58:22.999 GcmExampleSwift[443:] App measurement v.2003000 started
2016-04-12 20:58:23.002 GcmExampleSwift[443:] To enable debug logging set the following application argument: -GMRDebugEnabled
2016-04-12 20:58:23.049: GCM | GCM library version 1.1.4
2016-04-12 20:58:23.221: GCM | GCM registration is not ready with auth credentials
Could not connect to GCM: The operation couldn’t be completed. (com.google.gcm error 501.)
2016-04-12 20:58:23.558 GcmExampleSwift[443:] App measurement enabled
2016-04-12 20:58:23.596: GGLInstanceID | Invalid last checkin timestamp in future.
2016-04-12 20:58:23.632: GGLInstanceID | Unable to find token in cache Error Domain=com.google.iid Code=-25300 "(null)"
2016-04-12 20:58:25.085: GCM | Invalid key in checkin plist: GMSInstanceIDDeviceDataVersion
Connected to GCM
2016-04-12 20:58:25.431: GGLInstanceID | Unable to find token in cache Error Domain=com.google.iid Code=-25300 "(null)"
Registration Token: XXXXXXXXXX
2016-04-12 20:58:26.578 GcmExampleSwift[443:62016] Subscribed to /topics/global
2016-04-12 20:58:38.731 GcmExampleSwift[443:] Fetched configuration. Status code: 200
2016-04-12 20:58:38.731 GcmExampleSwift[443:] Successful fetched configuration from the server. Got network response. code, size: 200, 124
I noticed there was the issue Invalid key in checkin plist: GMSInstanceIDDeviceDataVersion. I'm not really certain this is the ticket, but it's difficult to determine what the issue is exactly when GCM says everything was successful.
Thanks!

Related

FirebaseInstanceId.getInstanceId() failing with SERVICE_NOT_AVAILABLE on WearOS device connected to iPhone

WearOS devices connected to an iPhone recently started getting SERVICE_NOT_AVAILABLE errors when calling FirebaseInstanceId.getInstanceId(). The exact exception is:
2018-12-07 14:37:26.529 5093-5093/com.xxxxx.xxxxxx E/OurFirebaseActivity: Could not get Firebase token. Exception: java.io.IOException: SERVICE_NOT_AVAILABLE
java.io.IOException: SERVICE_NOT_AVAILABLE
at com.google.firebase.iid.zzr.zza(Unknown Source:66)
at com.google.firebase.iid.zzr.zza(Unknown Source:79)
at com.google.firebase.iid.zzu.then(Unknown Source:4)
at com.google.android.gms.tasks.zzd.run(Unknown Source:5)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1162)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:636)
at java.lang.Thread.run(Thread.java:764)
This doesn't seem to be specific to our app only, when looking at the device logs, this seems to happen for other apps/services as well.
2018-12-07 14:02:48.931 891-3870/? I/GCM: Registration for wearable paired to iOS
2018-12-07 14:02:48.956 857-857/? D/AltFCMManager: reading APNS_TOKEN dataitem found a null dataitem:
2018-12-07 14:02:49.107 857-881/? I/zygote: Background concurrent copying GC freed
2018-12-07 14:02:53.950 891-3870/? W/GCM: Timed out getting APNS token from clockwork
2018-12-07 14:02:53.963 4509-4544/? E/FirebaseInstanceId: Token retrieval failed: SERVICE_NOT_AVAILABLE
All firebase library components are up to date. Also confirmed that GoogleApiAvailability.getInstance().isGooglePlayServicesAvailable(this) returns SUCCESS on these devices.
Maybe a recent Google Play Services update broke FCM on this device combo?
This was caused by an issue in the WearOS app for iPhone and Google released a fix in early January 2019 with v3.11.27.

Not receiving Push Notification in iOS after getting register the device in IBM MobileFirst Platform 8

I am implementing Push Notification in a Cordova App. On Android, Push Notification working fine. But on iPhone, I am not receiving notifications.
I am able to register the iPhone device successfully for push notifications and I am also getting all tags that I created via the MFP server. While sending notification for iOS, I do get the delivery success message taht is
"the notification message was accepted for delivery."
But I do not get any notification on the iPhone.
I am using
IBM MobileFirst Foundation 8.0.0-2016121916
Developer Kit version: 8.0.0.00-20161122-002317
Code :
function wlCommonInit(){
//initialize app for push notification
MFPPush.initialize (
function(successResponse) {
alert("Push Notification Successfully intialized");
MFPPush.registerNotificationsCallback(notificationReceived);
},
function(failureResponse) {
alert("Failed to initialize");
}
);
//Check device is Supported for push notification
MFPPush.isPushSupported (
function(successResponse) {
alert("Device is Push Supported");
},
function(failureResponse) {
alert("Failed to get push support status");
}
);
//regiser app for push notification
MFPPush.registerDevice( null,
function(successResponse) {
alert("Device Successfully registered");
},
function(failureResponse) {
alert("Failed to register");
}
);
var notificationReceived = function(message) {
alert(JSON.stringify(message));
};
}
Server log
2017-03-30 10:27:26.864028 MyProject[585:100605] [DEBUG] [OCLogger] Analytics data successfully sent to server.
2017-03-30 10:27:26.874357 MyProject[585:100605] Response Content : {"createdTime":"2017-03-29T14:27:31Z","lastUpdatedTime":"2017-03-30T04:54:33Z","createdMode":"API","deviceId":"20D322D5-781B-4C2C-82CE-673648AAB6FD","userId":"anonymous","token":"8c6c071ee6095e0ef5888abf8b885984fc02860c8a837f58be8118df8c353227","platform":"A","href":"http://192.168.10.126:9080/imfpush/v1/apps/com.MyProject.mobile/devices/20D322D5-781B-4C2C-82CE-673648AAB6FD"}
2017-03-30 10:27:48.280985 MyProject[585:100651] [] nw_coretls_read_one_record tls_handshake_process: [-9802]
2017-03-30 10:27:49.021119 MyProject[585:100651] [] nw_coretls_read_one_record tls_handshake_process: [-9802]
2017-03-30 10:27:49.026982 MyProject[585:100657] NSURLSession/NSURLConnection HTTP load failed (kCFStreamErrorDomainSSL, -9802)
2017-03-30 10:28:21.129769 MyProject[585:100682] void SendDelegateMessage(NSInvocation *): delegate (webView:runJavaScriptAlertPanelWithMessage:initiatedByFrame:) failed to return after waiting 10 seconds. main run loop mode: kCFRunLoopDefaultMode
2017-03-30 10:28:21.212950 MyProject[585:100605] Finished load of: file:///var/containers/Bundle/Application/03675139-9EBE-4F42-B07D-45C98D40A440/MyProject.app/www/index.html#/appTour
2017-03-30 10:28:32.822257 MyProject[585:100832] Inside sendRequest : WLRequestBuilder
2017-03-30 10:28:33.171541 MyProject[585:100605] Response Content : {"subscribed":[{"tagName":"promotional","userId":"anonymous","subscriptionId":"528","deviceId":"20D322D5-781B-4C2C-82CE-673648AAB6FD","href":"http://192.168.10.126:9080/imfpush/v1/apps/com.MyProject.mobile/subscriptions"},{"tagName":"transectional","userId":"anonymous","subscriptionId":"529","deviceId":"20D322D5-781B-4C2C-82CE-673648AAB6FD","href":"http://192.168.10.126:9080/imfpush/v1/apps/com.MyProject.mobile/subscriptions"},{"tagName":"yy","userId":"anonymous","subscriptionId":"530","deviceId":"20D322D5-781B-4C2C-82CE-673648AAB6FD","href":"http://192.168.10.126:9080/imfpush/v1/apps/com.MyProject.mobile/subscriptions"}],"subscriptionExists":[],"tagsNotFound":{"code":"FPWSE0001E","message":"Not Found - The target resource 'tagNames' does not exist. Check the 'tags' parameter.","tags":[]}}
2017-03-30 10:28:33.176354 MyProject[585:100605] [DEBUG] [OCLogger] The log file is empty. There are no persisted logs to send.
2017-03-30 10:28:33.183157 MyProject[585:100605] Inside sendRequest : WLRequestBuilder
2017-03-30 10:28:33.298817 MyProject[585:100605] Response Content :
2017-03-30 10:28:33.300344 MyProject[585:100605] [DEBUG] [OCLogger] Analytics data successfully sent to server.
2017-03-30 10:28:37.770125 MyProject[585:100605] WL.JSONStore success
From the logs, it is evident that your MFP server cannot communicate to APNS. Connection from MFP server to APNS is timing out.
Verify that your network rules or firewall is configured to allow outbound access from MFP server to APNS. Ensure all the required ports are open and allow inbound and outbound communication. While at it, make sure you allow access for APNS hostnames and not specifically whitelist IP's.
For more details on the ports and domains refer to this link.

iOS: KinesisEventRecorder without connection

Hi I am working with AWS Mobile SDK for iOS.
I am tracking some data with KinesisEventRecorder.
When the device has not connection I get this error:
AWSiOSSDK v2.4.2 [Error] AWSURLSessionManager.m line:211 | -[AWSURLSessionManager URLSession:task:didCompleteWithError:] | Session task failed with error: Error Domain=NSURLErrorDomain Code=-1009 "The Internet connection appears to be offline.
I know that this framework continue to keep data also without connection, but when the connection come back it seems send nothing.
Is there some properties to setting?

"Error Domain=com.google.iid Code=501" while registering ios devicetoken in gcm

GLInstanceID | Unable to find token in cache Error Domain=com.google.iid Code=-25300 "The operation couldn’t be completed. (com.google.iid error -25300.).
Please get me out of this.
The error log message GLInstanceID | Unable to find token in cache Error Domain=com.google.iid Code=-25300 is traced often, both when receiving google token succeeds or fails. I assume this is not an actual error.
I started receiving the error Error Domain=com.google.iid Code=501 on one device. No matter how many times I retried the call to tokenWithAuthorizedEntity:scope:options:handler: it always returned 501. I tried deleting the app, I tried restarting the device with no luck. I noticed that the same code ran fine on other devices. As a final resort I reset all data and settings on the device (factory reset) and this fixed the problem for me.

Possibilities of Fingerprint Issue in WebRTC

I am testing WebRTC implementation with Apprtc demo for iOS
I am facing a issue where the fingerprint does not match in the local sdp we send.
Failed to set session description.
Error: Error Domain=RTCSDPError Code=-1 "The operation couldn’t be completed. (RTCSDPError error -1.)"
UserInfo=0x17466d480 {
error=Failed to set local answer
sdp: Failed to push down transport
description: Local fingerprint does not match identity.
Expected: sha-1 FB:05:7C:59:1A:57:A2:47:0D:E2:2A:02:D1:C6:21:F9:9B:9A:10:0E
Got: sha-1 92:1C:6B:E0:2F:CA:63:49:8C:F4:CC:C2:F4:B9:86:F5:D8:7F:56:CC}
Can you please suggest what might be the reason behind this issue or where to debug in Apprtc

Resources