Registration is removed after sendNotification call

Hi All,
   I am using Java and com.windowsazure.messaging.NotificationHub wrapper to push notifications to mobile devices. I can successfully register my Android device and then call getRegistration() method without problem, it returns correct result.
Then I call sendNotification() (successfully) and call getRegistration() again. The problem is, after sending notification getRegistration() always returns  "404 Not Found" error, so I have to register device again, and then cycle repeats. What
may cause registration deletion after push attempt? There is nothing in documentation about it

Hi Teslenko,
When NotificationHub try to send the notification to GCM, it provides response about whether device is expired/Invalid along with other PNS errors in case of failures.  Then NotificationHub
deletes all expired and invalid registrations to avoid the DOS attacks.
As you are seeing registration getting deleted, it means either your device is expired or invalid. But in your case, my guess would be it's due to bad channel.
Could check the registration ID that is generated on the client side. It seems that registration id in the client side and server side do not match.
Here is the explanation from the
https://developer.android.com/google/gcm/http.html
“Check the formatting of the registration ID that you pass to the server. Make sure it matches the registration ID the phone receives in the com.google.android.c2dm.intent.REGISTRATION
intent and that you're not truncating it or adding additional characters. Happens when error code is InvalidRegistration”
Thanks,
Sateesh
Mark Post as helpful if it provides any help.Otherwise,leave it as it is.

Similar Messages

  • UCCE Not Ready Reason Code Removed after Internal Call

    Here is the scenario.  Agent puts themselves Not Ready which we have set to require a Not Ready reason.  They enter the reason and go about their business.  Someone internally calls their extension for whatever reason.  The agent takes the call and hangs up.  It seems they are left Not Ready but the reason for being Not Ready is removed.  They are now in a undefined not ready code.  Can it be set to put them back in the Not Ready Reason they were prior to the internal call?  Here is what we are running:
    CUCM: 8.0.3.21900-8
    ICM: 8.0(3)  (8.0 SR 8.03)
    CTIOS: 8.0(3)
    CAD: 8.0(1) (build: 8.0.1.47)
    JTAPTI: 8.0(3.10000)

    Hi Brad,
    As I understand that the agent before receiving the internal call the agent already went to Not Ready. So after the internal call depending on the wrap-up setting agent will either go to the wrap-up node or directly to the Not Ready state.
    If agent goes to wrap-up then need to provide the wrap-up code and after wrap-up need to select Ready or Not Ready. In this case agent will not get any option to select Not Ready. Because prior receiving the inter call the agent was in Not Ready state. By default this is how it works.
    But if you use CTIOS agent desktop then with customizing the call event. For example customize the CTIOS code in such was that for internal calls after agent press the wrap-up complete button instead of going back to previous event it will go to the Not Ready event.
    Unfortunately for your case it will not work as you are using CAD.
    Thanks,
    Ashfaque

  • SPA112 FW bug confirmed: registration broken during and after outbound call

    After receiving and configuring my new SPA112, everything seemed to work out just fine: registration to the SIP proxy, inbound calls, etc. However, at some point I discovered that outbound calls would typically only work for a certain amount of time, after which the connection to the callee would be lost, just like the my registration to the SIP proxy. In the SPA112's Web interface, the device reports "Registration State: Failed" in such cases. Only a reboot of the device will result in a successful registration again. Firmware version: 1.3.5(004).
    To diagnose the problem, I enabled both syslog and debug logging and started capturing and analyzing what is going wrong:
    [Before call]
    SIP.REGISTER
    SIP.TRYING
    SIP.UNAUTHORIZED (with nonce)
    SIP.REGISTER
    SIP.TRYING
    SIP.OK
    Also the debug logging reports "LOCAL3.DEBUG: [0]RegOK. NextReg in X".
    So far, so good.
    [During/after call]
    We see two (periodic) registration sequences:
    SIP.REGISTER
    SIP.TRYING
    SIP.UNAUTHORIZED (with nonce)
    LOCAL3.DEBUG: SIP_tsClientEventProc(event: 28)
    LOCAL3.DEBUG: SIP_regTsEventProc(event: 28)
    LOCAL3.DEBUG: SIP_tsClientEventProc(event: 28)
    LOCAL3.DEBUG: SIP_regTsEventProc(event: 28)
    LOCAL3.DEBUG: SIP_regTsEventProc(event: 28)
    LOCAL3.DEBUG: SIP_tsCreateClient()
    SIP.REGISTER
    SIP.TRYING
    LOCAL3.DEBUG: SIP_tsClientEventProc(event: 28)
    LOCAL3.DEBUG: SIP_regTsEventProc(event: 28)
    SIP.OK
    LOCAL3.DEBUG: SIP_tsClientEventProc(event: 28)
    LOCAL3.DEBUG: SIP_regTsEventProc(event: 28)
    LOCAL3.DEBUG: [0]RegOK. NextReg in X
    Which is OK and the same as before the call. This one is however shortly followed by the following (second registration sequence of) debug messages:
    LOCAL3.DEBUG: SIP_tsClientEventProc(event: 4)
    LOCAL3.DEBUG: tryAltIp_delay()
    LOCAL3.DEBUG: RSE_DEBUG: getting alternate from domain:<proxy>
    LOCAL3.DEBUG: SIP_regTsEventProc(event: 4)
    LOCAL3.DEBUG: SIP_regTsEventProc(event: 32)
    LOCAL3.DEBUG: 2. RSE:GetServerAddrErr(<proxy>,0)=-101
    LOCAL3.DEBUG: SIP_tsCreateClient(), 1781, uiTmrF=1600, SIP_TMR_F_INIT=1600
    LOCAL3.DEBUG: [0]Reg Addr Change(0) 29dfc552:5060->0:5060
    LOCAL3.DEBUG: tpError at [SIP_tsCreateClient:1817]
    These two registration sequences (regular SIP messages at the one hand and the debug messages at the other hand) are alternating, and the succesfull registration is followed by the failing registration in a short time, so most typical state is "Failed".
    Any suggestion on what I could try to solve the issue is welcome!

    I'm able to reproduce the problem in my test lab.
    It seems that device can't fetch IP address of the SIP proxy from it's internal cache during active call (GetServerAddrErr error -101). And the issue doesn't solve in full even after the calls end.
    It is not networking issue between device and DNS server as no DNS query has been issued (the IP address is cached from previous query that has been responded successfully).
    As a workaround I configured proxy IP instead of name.
    It work.
    It seems we hit (another) firmware bug.

  • Calling DbEnv- remove after DbEnv- close results in a segmentation fault

    I have two classes of database files: definitions that change slowly, and instances that are transient and change quickly.
    What I'm trying to do is this:
    close databases, environment
    back up files
    remove instance databases
    open new environment, existing definitions and create new instances
    This keeps returning ENOENT errors, but not consistently. The results are unpredictable and will sometimes hang. It seems to me that this is due to something in the environment not being cleared correctly. So I tried adding a remove after a close, and I get a regular and consistent segment fault as the unwrap function in cxx_env.cpp returns a NULL environment.
    This behaviour is consistent in versions 4.3, 4.5, and 4.7 on Solaris 10 and RHEL 5.
    So my question is twofold: Is there a better way to do what I'm tying to do, on that will work reliably, and shouldn't the remove operation work, even if ther's nothing to remove? I've had this problem for quite some time so any pointers would be appreciated.
    TIA,
    Dave

    Sorry. I had a major attack of the stupids. I was using old code that unlinked the underlying files instead of using a db->remove. It works much better now.

  • Deleted messages remove after one day (one week, one month) not working

    Has anyone noticed that since the upgrade to iOS 7 automatic email cleanup does not seem to be working?
    I have an IMAP email account set up with the following setting: Settings > Mail, Contacts, Calendars, [then tap the email account in question] > Account > Advanced > Deleted Messages Remove > After one week
    I have had that configuration on my iPhone and iPad for a very long time, and it always deleted everything out of my deleted messages folder (which, on my system, is called Trash) that was older than one week. It would do this no matter when the message was actually deleted, and no matter whether I deleted it on my iPhone, my iPad, on a computer using Outlook, or through a web interface. (It actually would have been nice to retain a message I had just deleted for the one-week period in case I changed my mind; instead the way it worked was if I deleted a message that was received months ago, it would be removed from Trash almost right away. But it worked consistently.)
    Now, since iOS 7, it does not appear to be cleaning out that folder at all. Has anyone else noticed this?
    I'm not sure if it's not removing any messages, or if it's just not removing messages I delete on another platform (like Outlook). So today I've done a test with a specific message that I will watch over the next little while to see how it works. But in the meantime I thought I'd ask if anyone else has noticed this, and if there is a solution.

    Really nobody?
    Is this working properly for people? It's not working for me on either my IMAP account or on an iCloud email accout, so I think iOS 7 broke something here. I've submitted a bug report on the feedback form, but it would be nice to know I'm not alone.

  • Phone crashes after every call

    My Droid crashes after every call.  I have to remove the battery and reboot the phone.  (Am running Droid 2.1).
    Verizon - this isn't even funny any more.  What's up with this?

    I haven't seen this before and it sounds really strange.
    Have you tried restoring you phone to "factory defaults". It is quite possible something that you have installed is conflicting somewhere, but it's really hard to guess what it might be.
    Also, while some of the VZW technical people do hang out here and answer questions, you're probably better off contacting VZW Customer Service with this one. You can reach them by dialing 611 on your mobile (which, in this case I wouldn't recommend) or at (800) 922-0204.
    jason

  • DLNA shows up after phone calls

    After every incoming call I get on my Droid X, DLNA pops up.  I don't use DLNA.  But I cannot stop it from popping up which it does without any interaction from me.  Since I cannot delete it from the phone (which I'd like to do) and since it has no settings to configure to stop it from executing, how can I get it to stop loading after phone calls?

    If this is happening on the current software update, there could be a way of clearing it out.  Instead of master resetting the device (also an option if these steps don't work), try clearing the cache on a few related applications. 
    Go to setting> applications> manage applications> all.  Clear cache/data/force stops on the following applications: Dialer, Dialer Storage, DLNA, and Phone.  Remove the battery after doing this. Retest this and see if it resolved the issues with DLNA popping up.  
    If this does not can someone try a master reset (steps) to see if this resolves the issue if the above steps do not?  Please post the results.  I researched this as much as possible, but I haven't noticed a common trend.  
    Thanks for bringing this to our attention, and please follow up with the results. 

  • 'Contacts' folder with sub folder cannot be removed after synching via iTunes

    'Contacts' folder with sub folder cannot be removed after synching via iTunes
    I am trying to remove a 'Contacts' subfolder
    ie Contacts < default folder
    - Contacts Mysubfolder 1 < Trying to remove this subfolder folder
    via my microsoft outlook onto my iPhone.
    Despite not having 'Contacts Mysubfolder 1' on my PC's outlook after deleting it, it does not delete the subfolder in my iPhone.
    I even restored my iPhone settings to the original via iTunes.
    I also replaced my physical iPhone but still synching with my original Apple ID + iTunes on the same desktop.
    All I did was after replacement of my iP, i setup my microsoft Exchange account, and there it was, the Contacts subfolder which is no longer around, appears on my iPhone contacts folder list.
    My outlook is on Microsoft exchange and I am on iP 3Gs
    Please help
    Thank you

    For general advice see Troubleshooting issues with iTunes for Windows updates.
    The steps in the second box are a guide to removing everything related to iTunes and then rebuilding it which is often a good starting point unless the symptoms indicate a more specific approach. Review the other boxes and the list of support documents further down the page in case one of them applies.
    Your library should be unaffected by these steps but there is backup and recovery advice elsewhere in the user tip.
    If you are running 64-bit Windows and the above steps haven't helped try installing the version of iTunes that can be downloaded from this support document. iTunes 12.1 for Windows (64-bit — for older video cards)
    If you still have no luck try reinstalling iTunes 12.0, links in the user tip.
    tt2

  • My iPhone 5s on ios 8.1.2 is stuck at Apple logo or recovery mode.. To fix this issue, i need to update it to ios 8.2 through itunes.. I want to ask that my data i.e. Photos and other personal data would be removed after updating it or not..?

    My iPhone 5s on ios 8.1.2 is stuck at Apple logo or recovery mode.. To fix this issue, i need to update it to ios 8.2 through itunes.. I want to ask that my data i.e. Photos and other personal data would be removed after updating it or not..?
    if yes then how can i save my data or get out of recovery mode.. Is there any safe mode or something like that on which i could access my data..
    P.S. I have not taken any backup of my iPhone on itunes..
    Please help me sort out this issue..

    Recovery mode doesn't mean that all your data is already lost. You only lose your data if you restore it.
    When you plug the phone is into iTunes hold down the home button. iTunes may then give you the option JUST to update the software first. This should not get rid of any data.
    However, if iTunes is only giving you the option to RESTORE and update, then you will lose your data I'm afraid.
    Hope that helps!

  • TS3367 I have two IPhones and one IPad all with the same Apple ID. I can call facetime between the two IPhones, but I cannot call the IPAD from either of the IPhones and when I call my IPhone from the IPad it rings my wife's IPhone after briefly calling m

    I have two IPhones and one IPad all with the same Apple ID. I can call facetime between the two IPhones, but I cannot call the IPAD from either of the IPhones and when I call my IPhone from the IPad it rings my wife's IPhone after briefly calling mine.

    Each device needs a separate address. Use an email address (gmail.com) on the iPad.
    Using FaceTime http://support.apple.com/kb/ht4319
    Troubleshooting FaceTime http://support.apple.com/kb/TS3367
    The Complete Guide to FaceTime + iMessage: Setup, Use, and Troubleshooting
    http://tinyurl.com/a7odey8
    Troubleshooting FaceTime and iMessage activation
    http://support.apple.com/kb/TS4268
    Using FaceTime and iMessage behind a firewall
    http://support.apple.com/kb/HT4245
    iOS: About Messages
    http://support.apple.com/kb/HT3529
    Set up iMessage
    http://www.apple.com/ca/ios/messages/
    Troubleshooting Messages
    http://support.apple.com/kb/TS2755
    Setting Up Multiple iOS Devices for iMessage and Facetime
    http://macmost.com/setting-up-multiple-ios-devices-for-messages-and-facetime.htm l
    FaceTime and iMessage not accepting Apple ID password
    http://www.ilounge.com/index.php/articles/comments/facetime-and-imessage-not-acc epting-apple-id-password/
    Unable to use FaceTime and iMessage with my apple ID
    https://discussions.apple.com/thread/4649373?tstart=90
    For non-Apple devices, check out the TextFree app https://itunes.apple.com/us/app/text-free-textfree-sms-real/id399355755?mt=8
    How to Send SMS from iPad
    http://www.iskysoft.com/apple-ipad/send-sms-from-ipad.html
     Cheers, Tom

  • How to hide or do not show the receipt's name after miss called?

    1. How to hide or do not show the receipt's name after miss called?
    2. I do not want to show my message statement in the screen.

    I have also registered to this forum to inform that the problem with showing the MAC-address in the sidebar of the finder is still not solved.
    The strange thing is that the Embedded Web Server says:
    "This specifies the Bonjour domain name assigned to the device, in the form <host name>.local. If a user-specified host name has not been assigned, the default host name HPxxxxxx is used, where xxxxxx are the last 6 digits of the LAN hardware (MAC) address. This option cannot be modified."
    But I did assign a user-specified host name and that name does show-up everywere (also within Bonjour), except in the sidebar of the finder (hp###xx##x####). Lots of people have the same issue, when searching on the interet, but not one has found the solution.
    Please help with solving this issues?

  • Win 8.1 modern calendar - all notes in a calendar meeting are truncated/removed after opening/viewing (Exchange 2010 and EAS)

    All,
    If this isn't the best forum to post in, please let me know.
    I am having an issue when I accept calendar invites in the native/modern application for calendaring in Win 8.1. Whenever I then go back to open and view the contents of a meeting, all the notes are truncated and removed after closing that event.
    We are running exchange 2010 for the email server.
    The machine is not domain joined/managed (local account only).
    Any assistance greatly appreciated. 
    Thanks,
    Steve

    Team,
    Looking for some expert advice here - any assistance would be appreciated.

  • Sound muting problem after missed calls

    Using Skype 4.9, but confirmed with 4.7 as well.
    Android 4.2.2 JB, standard theme.
    After a missed call, my FM radio stops working, and also I find all other sounds quieter byt more than 40-50%. No volume control app helps (tried many), the volumes don't seem changed. The FM radio apparently finds stations etc. but no sound. As if it is muted, and all other sounds seem to be affected by some more master volume no app could affect.
    This whole mess is fixed when restarting the phone, or when I make another call to Sound test service (or other contact) - just establishing a call is enough to fix the issue. This is not always a solution for variety of reasons.
    Also letting skype exit (after signout) completely fixes the issue. But this "exiting" takes hours most of the time - its VideMonitor service stays for hours after signout, sometimes days. Unacceptable.
    This is Very frustrating to the point i stopped using skype until this is fixed.
    It seems Skype doesn't restore some volumes/mute after a missed call.
    The mentioned workarounds are not always viable, especially when I'm away from Wifi range. Is there another workaround, or better, a fix, when I miss a call, skype should restore sound volumes and any muted channels (fm radio).
    Thanks.

    The very same problem on Huawei Ascend G7...
    After missed call skype turns off all the sounds in the phone including alarm.
    I did late on work today because of it...
    Why nobody from the developers don't take this seriosly and to clear up that serious issue..???

  • Why wont video resume automatically after a call?

    Why is audio and video behavior different after a incoming telephone call?
    Audio will resume after a call is complete without user intervention. Why wont video.
    Why do you have to hit play after the call is completed to continue video playback?
    Its particarly annoying when you have the iPhone connected to the TV through the new video cable.
    Seems like a bug to me.

    If How to Troubleshoot iSight doesn't help, Reinstall OS X.
    Message was edited by: EZ Jim
    Mac OSX 10.9

  • Iphone hangingng after missed call

    My iphone sometimes after missed call in lock screen what is the solution knowing I wasn't face this problem in IOS 6

    Hello there, Abomosa.
    The following Knowledge Base article offers up some practical steps to try for troubleshooting issues with an application not performing as expected:
    iOS: Understanding multitasking
    http://support.apple.com/kb/ht4211
    When performing Step 2, I would recommend closing all applications that are running. If you perform Step 3 and the issue persists, you may want to try resetting as well:
    If an app doesn't respond to your input, or doesn't perform as expected, do the following, testing after each step:
    Check for app updates.
    Force the app to close.
    Restart your device.
    Update your iOS device.
    Learn more about troubleshooting apps.
    Additionally this article offers some great information for Display issues as well:
    iPhone: Hardware troubleshooting
    http://support.apple.com/kb/ts2802
    If you find the issue is still unresolved that same article offers the following:
    My issue is still not resolved. What do I do next?
    Contact Apple Support.
    Thanks for reaching out to Apple Support Communities.
    Cheers,
    Pedro.

Maybe you are looking for

  • Push one account, fetch another

    Hi there, I would like to customize my mail on my iPhone in such a way as to receive Push notifications on 2 accounts and Fetch manually from a 3rd account. I know how to set this up (i.e. settings -> mail, contacts, calendars -> Fetch New Data-> Adv

  • Transport protocol version error in Integration Directory API

    Hi All, I am trying to create SOAP receiver communication channel using Java-only PI 7.31 directory APIs. I have passed all the required parameters to the CommunicationChannelIn service, but it's throwing error - "Enter at least one object key for op

  • Worklist Application page errors out in SOA suite 10.1.3.1

    All, I have installed SOA Suite 10.1.3.1 and going through the given BPEL samples/demos. I am trying "VacationRequest" demo. I am able to deploy the process in BPEL and initiated the process via BPEL console. After that I could not get the Worklist A

  • Inner shadow

    Hi, In InDesign CS3 there is an option to create an inner shadow in a vector object. Is it possible to do the same in Illustrator CS3. Thanks, Meryl

  • Contextual menu in finder "open with" has multiple entries of same apps

    When I use the contextual menu (right click) on documents, the menu point "open with..." shows multiple entries of the same programs. For example when right clicking a PDF, there appears 5 times neoOffice, 2 times Preview, 6 times ... any other appli