How do I register the device in my everlive?

9 posts, 0 answers
  1. Nitish
    Nitish avatar
    7 posts
    Member since:
    Aug 2013

    Posted 22 Nov 2013 Link to this post

    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
  2. Ryan
    Ryan avatar
    3 posts
    Member since:
    Nov 2013

    Posted 24 Nov 2013 Link to this post

    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. 
  3. Dimitar Dimitrov
    Admin
    Dimitar Dimitrov avatar
    26 posts

    Posted 26 Nov 2013 Link to this post

    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.
  4. Paul
    Paul avatar
    2 posts
    Member since:
    Dec 2011

    Posted 27 Nov 2013 Link to this post

    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?
  5. Dimitar Dimitrov
    Admin
    Dimitar Dimitrov avatar
    26 posts

    Posted 28 Nov 2013 Link to this post

    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.
  6. Ryan
    Ryan avatar
    3 posts
    Member since:
    Nov 2013

    Posted 12 Jan 2014 Link to this post

    Is the above "fix" going to be applied to distribution? Somewhat hesitant to add this in otherwise.
  7. Lyubomir Dokov
    Admin
    Lyubomir Dokov avatar
    43 posts

    Posted 15 Jan 2014 Link to this post

    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.
  8. Rajesh
    Rajesh avatar
    2 posts
    Member since:
    Feb 2013

    Posted 27 Jul 2015 Link to this post

    I am developing small application on telerik appbuilder. For Push Notifications how should i add device or register. Please help me out.
  9. Anton Dobrev
    Admin
    Anton Dobrev avatar
    539 posts

    Posted 30 Jul 2015 Link to this post

    @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.

     
Back to Top