This is a migrated thread and some comments may be shown as answers.

How do I register the device in my everlive?

8 Answers 504 Views
General Discussion
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Nitish
Top achievements
Rank 1
Nitish asked on 22 Nov 2013, 10:40 AM
Hi guys,

Im currently working out the everlive push notifications demo. I have deployed my app on my iPhone. However, I cant seem to register my device on the everlive. I have already saved the .p12 file on my everlive account. My deployed app asked me to allow push notification and after its success message, it gave me this error:

'An error occurred while checking device registration status. Item not found'.

I have been following this guide: http://docs.everlive.com/development/ios-sdk/push-notifications/introduction


[application registerForRemoteNotificationTypes:]

^Where do I call this method?

Cheers
Nitish

8 Answers, 1 is accepted

Sort by
0
Ryan
Top achievements
Rank 1
answered on 25 Nov 2013, 04:48 AM
Can confirm I'm experiencing a similar issue. I had the sample everlive push application configured and working, I then played around with it for a while and things stopped working.

Recloned the sample app (re-entered my application specific details) and got the same error.

Would really like to get this sorted, as I'm trying to sell my employer on Icenium and Everlive - and push notifications would be the thing to clinch it. 
0
Dimitar Dimitrov
Telerik team
answered on 26 Nov 2013, 04:04 PM
Hello,

We apologize for the caused inconvenience.

We have made a small change to the registration of the device in the everlive push sample, so if you clone the latest version from github, everything should be fine. Also make sure you are using the latest version of the JS SDK(which is included in the sample).

Regards,
Dimitar Dimitrov
Telerik
You've missed the Icenium Visual Studio Integration keynote? It has been recorded and posted here.
Looking for tips & tricks directly from the Icenium team? Check out our blog!
Share feedback and vote for features on our Feedback Portal.
0
Paul
Top achievements
Rank 1
answered on 27 Nov 2013, 03:27 PM
Hi,

I have a similar problem. I got an error 'Item not found', code 801 on the getRegistration. My device was registered succesfully before so on reception of the error, i registered the device again and I noticed that the device was registered a second time in Everlive with the same userid and the same push token. However the hardware id was different. Shouldn't it be the same as long as I'm working on the same device? Can I set the harware id in code?
0
Dimitar Dimitrov
Telerik team
answered on 28 Nov 2013, 02:30 PM
Hello,

Since the last update of the JS SDK, the getRegistration function returns an error instead of an empty Result object. If the error status code is 801 ( Item not found), this simply means that there is no registration for this device. You can see that our change to the sample application was to catch this error and if the error code is 801, we try to register it.

The different Hardware id is expected, if you register an iOS device. Every time you build & delpoy your application and then try to register, the JS SDK is reading the information about your phone and the iOS devices are returning different ids, so the inconsistency is not coming from Everlive.

You can set your own device id by overriding the _getDeviceId function from our SDK:
currentDevice()._getDeviceId = function () {
            return device.uuid; //This is the code that we set for HardwareID
        }



Regards,
Dimitar Dimitrov
Telerik
You've missed the Icenium Visual Studio Integration keynote? It has been recorded and posted here.
Looking for tips & tricks directly from the Icenium team? Check out our blog!
Share feedback and vote for features on our Feedback Portal.
0
Ryan
Top achievements
Rank 1
answered on 13 Jan 2014, 01:37 AM
Is the above "fix" going to be applied to distribution? Somewhat hesitant to add this in otherwise.
0
Lyubomir Dokov
Telerik team
answered on 15 Jan 2014, 08:59 AM
Hello Ryan,

The fix about the getRegistration function is already applied and this is how it is going to work from now on - getRegistration will result in a "not found'" error if the device is not registered. You can safely rely on this functionality.

About the device ID:
Dimitar explained below what we use to get unique ID of the device. However, how "unique" this actually is depends on the Cordova version you use. Here is some more information on the topic:
http://www.marcelk.org/archives/513

You can plug in your own implementation of _getDeviceId if you consider it to be more appropriate for your scenario. We are using this device ID to uniquely identify the device's push registration in the server. With the current implementation the device ID might change during development, based on the Cordova version you use. This means that the device will lose its registration data in Everlive. Please note, that this only happens during development and only with iOS devices. On a real installation from the AppStore the device ID will stay the same unless the app is reinstalled, so no data will be lost.

Let us know if you have other questions.


Regards,
Lyubomir Dokov
Telerik
You've missed the Icenium Visual Studio Integration keynote? It has been recorded and posted here.
Looking for tips & tricks directly from the Icenium team? Check out our blog!
Share feedback and vote for features on our Feedback Portal.
0
Rajesh
Top achievements
Rank 1
answered on 28 Jul 2015, 04:59 AM
I am developing small application on telerik appbuilder. For Push Notifications how should i add device or register. Please help me out.
0
Anton Dobrev
Telerik team
answered on 30 Jul 2015, 02:33 PM
@Rajesh


You can take a look into the Getting Started article here and the referenced resources to get further understanding of the supported features and sample apps.

This troubleshooting section might be handy as well.

Let me know if you have questions.

Regards,
Anton Dobrev
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items




Regards,
Anton Dobrev
Telerik
 

Visit the Telerik Verified Plugins Marketplace and get the custom Cordova plugin you need, already tweaked to work seamlessly with AppBuilder.

 
Tags
General Discussion
Asked by
Nitish
Top achievements
Rank 1
Answers by
Ryan
Top achievements
Rank 1
Dimitar Dimitrov
Telerik team
Paul
Top achievements
Rank 1
Lyubomir Dokov
Telerik team
Rajesh
Top achievements
Rank 1
Anton Dobrev
Telerik team
Share this question
or