I looked through this issue on the tutorials but didn't found anything that solves my problem.
I've made the an application and added the development/production push notification certificate for iOS, but when I send a push from appery.io site, it gives me status "Error" with the following error "Device Token has a length of [9] and not the required 64 bytes! ", I checked the DB token value appears to be undefined.
Furthermore, in the database only one device is added, if I try the app in another iPhone it gives me success registration but no device is added to the DB, only accepts one row and the token value appears as "undefined" as well.
Looking forward for a reply. Thanks
Push Notifications are not working in iOS Devices, token undefined
-
-
-
Hello Rajesh,
Please look at this link, hope you'll find the useful information there:
https://getsatisfaction.com/apperyio/... -
-
Hey Evgene,
Thanks for the quick reply. I have already looked into that ticket. But didn't get the solution.
Initially, I tested the iOS push notifications and found out the certificate is not correct. It was giving the below error:
Error occurred while loading the keystore: Invalid keystore password! Verify settings for connecting to Apple...
So I uploaded two diff certificates from my account one for production and one for the development, after adding those I got a separate error, Below is the error:
Device Token has a length of [9] and not the required 64 bytes!
The app is currently in Development and dev certificate is being used.
And the token in DB is blank again.
My app name is "Hang with me". Can you please look into it. -
-
Hi There, in fact I am interested in that solution 'coz I still have the same issue.
I put it aside thinking to get another iOS device to test.
It seems I am not the only one, the problem must come from somewhere else.
looking forward to hear from you guys.
Thks in advance
Eric -
-
-
Hi Rajesh,
Here what you can try:
1. Re-set all your push certificates in 'Push notifications settings';
2. Re-link your Database to your app;
-- build and install on a device again. -
-
-
-
-
Hi Rajesh, like to know if you can succeed with that Re-set/Re-link, 'coz it never worked for me. Thks, Eric
-
Didn't worked for me too
-
-
-
-
-
- view 1 more comment
-
-
Hello Rajesh,
Unfortunately not yet, we are working on it and will get back to you with the update. -
-
Thanks for the update. Looking forward to it.
You can also check my app if there is anything wrong with APIs.
Let me know if there is anything you need from my side. -
-
-
-
Hi Rajesh,
Try to "Re-install" the app to the particular device. and delete that row to the database.
then open the installed app again.
Regards.- view 2 more comments
-
-
-
App Name: Hang with me
DB Name: Hang with me -
-
-
-
-
-
Rajesh, I had this issue a while ago where the database "Devices" collection was showing undefined for my iPhone. So I added a devicesRESTService to manually upload the 'deviceID', and the device 'token' to the collection.
To do this, here's setup:
And:
And lastly:
If your certificates are good, then this should address the undefined token issue.
I hope it helps. -
-
Hi John,
I'm not Rajesh but faced similar issue.
I put it aside to be solved later.
Here is your suggestion.
I'll check it out soon.
Thks a lot !
Eric -
-
-
Hi There !
any progress on that issue.
I am facing the same problem too:
. either my iOS device doesn't show in the devices' table,
. or when device's id appears, then token remains "undefined".
my app was checked but nothing was find.
however, seems I m not the only iOS device owner hving this kind of trouble.
any update ?
thks in advance
Eric -
-
Hello!
Is there any error message shown on Scheduled Push Notification tab?-
no error msg.
I was asking again since my problem looks like this person and some other.
basically nothing stable ... iOS device shows up in the Devices table but without token, appears or disappears in the Push Setting, ... shows "0" (zero) as "sent" in the table ...
the most strange is that the "appery app" doesn't appear among the iOS device's notification setting like any other app which features the notification function.
maybe you guys could study several of our apps. there must be some a similar setting in them which occurs that problem.
in addition, I hv got several Android devices and all work as expected. except for the scheduled notif. but this one you will help me and sooner it will go well, I m sure.
thks for your time.
Eric -
-
-
-
-
Hi Eric,
We cannot reproduce this on our testing apps and devices iOS 7.1.2.
As we assume you're experiencing this problems with your app 'EB' but we can't see if it is linked to any DB, so please share with us your DB and we will test it. -
-
Hi Illya,
Thks for your feedback.
I don't know what you mean by 'EB'.
however, i put the app on share.
app name : o2o4pw
db name: mybnoteDB
thks for your time again
Eric-
Hello,
Please specify your iOS version. -
-
hi Alena,
thks for you guys' time.
1/ my iOS device (7.1.1)
2/ FYI pls hv a look at what was discussed before. https://getsatisfaction.com/apperyio/...
best,
Eric -
-
-
-
-
Hi EJLD,
Thanks for the sharing we will try your app and let you know here.
Regards. -
-
Hi EJLD,
Sorry for delay. I was going to test your app, but looks like you no longer share DB with support@appery.io. Could you share it again and let us know when it is done? -
-
Hi Ihor, and happy new yr ! wish Appery.io success :)
thks for your time on that matter. true, just realized that the webpage was changed and that the share function is different now.
has just set the toggle button to "on" share for both App and DB.
the App's name is o2o4pw,
and the DB's mybnoteDB.
best
Eric -
-
Thanks for sharing. We'll test it. But unfortunately, it will take some time.
-
it's fine. I still hv a lot to do with other things to develop. just need iOS being able to receive notification some day I would be done with everything :)
thks a lot -
-
-
-
-
Hi Eric -
Just to update the status, we reproduced behavior that you described us.
We will investigate what could be the reason of this. -
-
thks for acknowledging.
looking forward to hearing from you with a good news,
Best! -
-
Hi everyone!
Unfortunately I've come across the same issue working on my own app just now. That is on the iPhone I get the deviceID but not the token, I haven't tried android yet. I will try to solve this issue myself as well as jump aboard this conversation if anyone finds a solution.
Best regards,
Sebastian
Edit...
Forgot to mention these two tutorials on registration are slightly different. One say you have to add the request attributes: deviceID, token and type in body while the other one says query.
http://devcenter.appery.io/documentat...
http://devcenter.appery.io/tutorials/...-
Hi Sebastian -
Could you please clarify what iOS version you're using for testing?
Also you can try to reconnect the DB in Push settings, rebuild the app and try installing on device once more. -
-
-
-
-
Hello @EJLD!
Our developer tested your shared app backup and cloned DB and issue is not reproducible.
Looks like you've specified something wrong in iOS binary settings or Push settings. Please ensure you are using correct bundle id, certificates and provisioning profiles. -
-
Hello @there!
your feedback is confusing
few days ago I received from your colleague:
xxxxxxxxxxxxxxxx extract of her msg xxxxxxxxxxxxxxxxxxx
EMPLOYEE
Illya Stepanov (Employee) 9 days ago
Hi Eric -
Just to update the status, we reproduced behavior that you described us.
We will investigate what could be the reason of this.
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
when today you are coming back with something different.
strange service and communication to client -
-
Hello!
Yes, but looks like Illya also specified some incorrect settings (we'll check it together with Illya and let you know result).
Based on Illya's report we created a bug and developer assigned to this bug can't reproduce it...
Please let me check with Illya his app, push settings, certificates, etc. I'll update!-
I appreciate you help :)
Thks for cross-checking internally your findings.
I did rebuild the iOS certificate, replace, ... but no success unfortunately.
Therefore, anything you guys found out that would give me some directions where to look into is welcome.
Thk you again for your patience,
Eric -
-
-
-
-
Hi again :)
Checked and confirmed - Illya has specified incorrect provisioning profile (it was the one for exporting .ipa, not provisioning profile for push). Sorry for confusing you!
Could you clarify if you have two pairs of provisioning profiles/certificates?-
Hi again :)
thks for your prompt feedback with direction. Let me check (tmrw, it's late here already).
enjoy end of the wk -
-
-
-