Push Notification Background Task Crashes Emulator/Device

I have a universal app for Win 8.1 and WinPhone 8.1. I have a background task triggered by push notifications, which has worked fine in my Win 8.1 app. I made the necessary changes as far as registration goes for the Phone 8.1 app, and as far as I can tell
registration is fine. So I launch the app in the emulator, and send a raw notification using the 'Notification Simulator' tool. This does indeed trigger my background task JS file, but the emulator promptly crashes after displaying an error like "Network
communication is no longer available" or some such. This happens even if I put a break point on the first statement of the background task script. I've also tried using a real push notification from my web service and that produces the same results (emulator/device
crashing).
I made a small test in which I changed my trigger type to a system event so I could manually trigger the background task via VS. Doing this, I was able to properly debug the background task script. So something is definitely messed up with the push notification
trigger, but I have no idea what it could be. I've even copied my background task registration code to the 'RawNotifications Sample' app and that still works, so I know the registration code works. I've also copied the exact same code for the background task
script from the sample app since I know that should work.
The emulator crashing could be due to some errors I occasionally see in the background task, one of which is an 'Access denied' error when trying to access the
'WebUIBackgroundTaskInstance.current' property inside the background task. Another error occurred when trying to access
'ApplicationData.localSettings'. That one was something like 'failed to load state store'.
If anyone can make sense of any of this that'd be wonderful. I can post some screenshots of errors, etc. later today for added clarification.
Thanks.

So I've done some more investigating and it turns out the
sample app actually does not work as intended. When I thought it was working, I actually wasn't invoking the background task capability, but rather the
pushnotificationreceived event on the notification channel. After running the part of the app that is supposed to run the background task on receiving a push notification, I get the same crashing behavior as my own application. Based on this,
it would seem that Windows Phone 8.1 Developer Preview does not actually support background tasks triggered by push notifications.
Here are some screenshots of the emulator after I try pushing a raw notification via the NSE.

Similar Messages

  • Issue Configuring Push Notifications Proxying for OWA for Devices

    I have been attempting to configure Push Notifications per http://technet.microsoft.com/library/jj151815.aspx#bkmk_installmodule
    When running the second PowerShell script I get the error 
    "New-MsolServicePrincipalCredential : Invalid value for parameter. Parameter name: Credential.EndDate.
    At c:\Users\User\Desktop\script2.ps1:25 char:5
    * New-MsolServicePrincipalCredential -AppPrincipalId $p,AppPricipalId -Type a"
    I do currently have another Federation Trust configured for this account with our test environment. Might this be causing this error? Any help would be appreciated.

    Hi,
    As far as I know, the issue can be caused by time difference between local timezone and server timezone. Please firstly check with this point.
    Thanks,
    Simon Wu
    TechNet Community Support

  • How to send location based push notification

    How to send notification from website to the devices in   particular latitude and longitude

    I assume you mean you want the backend to send push notifications to a group of devices based on their geographical location?
    In that case each device needs to register at startup with the notification service (Windows, Apple, Android, etc.), and get a handle, then register the information (along with its unique identification, such as account or phone number) with
    Azure's notification hub. It also has to send its geographical location and the backend needs to keep this information somewhere (in a table, for example). The device needs to periodically update the backend for its new location. When the backend has the need
    to send push notifications based on device's geographical location (based on a rectangular grid for example), then it has all the information to do it.
    Frank

  • Facebook push notification issues

    I have recently converted to an iPhone 5C.  I was previously on Android and never had this issue before.
    I have followed step by step instructions and have successfully installed other apps such as twitter, bbm, whatsapp and am able to receive notifications.
    For some reason I cannot get any push notifications from Facebook on my device.  Everything has been checked and rechecked.  I have spent hours on the phone to tech support who also contacted Apple for guidance.  Friends who also have the same handset have also had a look but cannot see what is causing the issue.
    It has been left for me to contact Facebook but they do not respond separately so am not confident that I will get a response from them.  I have been left to deal with this on my own.
    We have restored the phone to factory settings to see if this makes a difference and also gone through the notification settings on the iPhone and app settings.  All is normal!
    Can anyone please help?

    This have SOLVED all my notification problem:
    Go to ios Setting/Mail,Contacts,Calendars/Fetch New Data: set Push to ON (my was set to off)
    Scroll down to Advanced and set icloud to Push (my was set to manual)
    I deactivated all this settings because of battery drain, but after this, all works fine.
    That's all.
    Be sure that all Facebook notification settings are active in the Notifications window.
    Tommy

  • Push notifications not working with production (apnagent nodes Js)

    Hi,
    When we tested the push notification in sandbox using apnagent node JS it worked well. But when we switch the sandbox to production it is not working. When we debug the server side we are not getting any errors also in production, but push notifications are delivered to the devices.
    First we thought it is a certificate issues and then revoked all the certificates in the portal and created new certificates still no luck.
    Can any one tell me why push notifications are not working in production.
    Thanks in advance!

    You're welcome. The request has been sent in. I first saw your post in the Using Apple Support Communities Forum, now I see it's been moved to the iPod Forum, hopefully it will get moved again.
    iIt's been moved.

  • Push Notification Revoke Permission

    I want to ask how Apple Push Notification behaves if you want to stop sending push notification to the iOS devices after you changed passwords?
    For example:
    Let say I have 5 users using the same Paypal account on 5 iOS devices with the same password at some stage.
    All users have been able to use the iOS app, and getting push notifications.
    Now I want to restrict access to only 2 users and revoke the other 3 users from getting access to PayPal account.
    So, first thing I do is to change password to Paypal. That immediately restricted access to users that don't know what the new password is. So next time they launch Paypal, it will ask for new credentials.
    Does that also stop Apple Push Notification Servers from sending out push notifications to all the iOS devices? I'm suspecting that I need to do something extra to stop APN servers to sending to the previously registered iPhones.

    Anyone?

  • Push Notification only works for some Apps?

    I just upgraded to a new iPhone 3GS from the official german carrier (t-mobile). The device is not jailbroken or unlocked.
    With some applications push notification works (iFun, Trivial Pursuit, Ping, Facebook, IM+), with some not (N-TV news, Focus news, ebay). I already tried deinstallation with data removal of the apps and reinstallation.
    Is there some way to reset the push notification feature, or reset the device token?
    Thanks in advance for your help!

    Yes, they have - both are news applications with push capability.

  • Problem with Push notifications from Facebook since I intalled Mavericks

    Since I installed Mavericks, I'm not getting push notification from Facebook on any device (iPhone, mac, iPad etc). Also I can't used any of the quick post buttons in notification center. I tried deleting and adding all the accounts again. nothing worked.

    Hi,
    I don't use Facebook and have no other ideas at present
    10:02 pm      Monday; October 28, 2013
      iMac 2.5Ghz 5i 2011 (Mavericks 10.9)
     G4/1GhzDual MDD (Leopard 10.5.8)
     MacBookPro 2Gb (Snow Leopard 10.6.8)
     Mac OS X (10.6.8),
     Couple of iPhones and an iPad

  • Clicking on Background Tasks causes instant crash

    I posted earlier about my 2010 Mac Pro and in FCPX 10.0.6 if I click on the Background Task (just to left of time counter / timecode) I get an instant blue-screen for less than a half of a second and then I'm back to my desktop!  It's instantaneous!
    When it happened I was inporting 1080p24 from my CF reader and I had asked checked "Optimize Media" so I wanted to check in and see the progress of the 5DmkII HD footage being encoded to Apple ProRes, but the crash was so fast - like catching the downhill edge on a snowboard... anyway, now when I boot up my Mac Pro, also a new issue - possibly related?!?!  - the fan is running louder than ever before - I think it is running wide opne full-blast!
    What is happening to my faithful Mac Pro?  What is happeneing to FCPX??
    FCPX 10.0.6
    MacPro5,1 (2010 2.8GHz Quad Core)
    OSX 10.6.8 (I'm on Lion because I need to keep FCP7 on for legacy freelance projects).
    8GB 1066MHz RAM
    note:  I've been stable for a long time now, and haven't loaded anything new including the most recent FCPX update tyhat came out last week; 10.0.7
    Please help.
    Thanks,
    Stephen

    Hello mrcart,
    i think it is unlikely that firefox itself is causing an operating system crash, i had some time back an similar issue where a system of a friend of mine was crashing while using IE - thats the only app he used ... the system in his case had faulty ram, and i suspect you are facing some sort of hardware problem or faulty device driver.
    Please read this (also lists steps what you can do):
    http://technet.microsoft.com/en-us/library/cc957625.aspx
    (personally) I would suggest you start by checking your ram, you can do this in two ways:
    Search in your Windows 7 Start Menu for "ram", you should find something like "Diagnose your computer´s memory problems"
    ... Or, you use the memtest86+ tool from here (e.g. download the iso, burn it and boot from the cd):
    http://www.memtest.org/
    Check your eventlog for errors (e.g. disk errors, timeouts, etc).
    If you cannot track the problem down (i would suspect a hardware problem or faulty device driver ... e.g. it could be your video card driver doing something wrong) you should seek help at your computer manufacturer, an experienced friend, or using some forum.
    kind regards,
    John Kirk.

  • Android devices not getting push notifications after a while

    We have just installed a new Exchange 2013 setup and started to move mailboxes across. Users that have Android devices though are noticing that push notifications are not reaching them and checking in the ECP I can see their last sync times are a long time
    ago! 
    If they restart their devices then the sync occurs and push notifications work for about half a day then stop again. 
    We have no issues with any iOS devices getting push notifications. We have a range of Android JellyBean and KitKat deployed so not looking device related. If I turn off push notification on the Android device and force a manual sync every 5 minutes that
    works and currently seems to be my workaround. But this will drain the battery quicker now. 
    The flow of notification would be simple, Exchange2013 > Firewall > Internet > Device
    Anyone else experiencing issues like this and know what to check? We have checked all networking aspects and its not a network/firewall issue. 

    After hours of searching online and testing and troubleshooting I found the issue actually was affecting push notifications to all mobile devices on Exchange 2013 where their mailboxes had been migrated recently from Exchange 2010. 
    There is a bug in Exchange 2013 CU5 which I am on which causes issues after mailbox migrations and requires the ActiveSync app pool in IIS to require a restart after mailbox moves to function correctly. 
    After I completed an iisreset within a command prompt on the CAS server everything started working for push notifications. 
    Lets hope this gets fixed in CU6!

  • Pushing notifications to android emulator behind a proxy

    Hi Guys 
    I hope this is the correct place to ask this question - if not please direct me.
    I'm attempting to build an android app (in the emulator) that receives push notifications from Azure/gcm.
    I'm also using eclipse ADT in a windows 8.1 for the android dev' work.
    I have been attempting to apply the tutorial
    http://azure.microsoft.com/en-us/documentation/articles/notification-hubs-android-get-started/#connecting-app
    The registration process works correctly and I receive a registration ID from the Google CloudMessagingService which i then use to register a NotificationHub (from which I  receive a registration ID )
    Where I seem to be having problems is when i try and send an Android  (Random Broadcast) message from the Azure management Portal.
    {"data":{"message":"Notification Hub test notification"}}
    The message never arrives at my app (in the emulator) as 
    @Override
    public void onReceive(Context context, Bundle bundle) {
    ctx = context;
    String nhMessage = bundle.getString("message");
    // sendNotification(nhMessage);
    mainActivity.DialogNotify("Received Notification",nhMessage);
    doesnt fire. (but does in the registration process)
    (Azure says the message was delivered)
    So I'm wondering if theres something i'm missing - perhaps surrounding the proxy server i'm behind? Or something else to do with the emulator?
    regards
    Bryce

    Hi Guys 
    I hope this is the correct place to ask this question - if not please direct me.
    I'm attempting to build an android app (in the emulator) that receives push notifications from Azure/gcm.
    I'm also using eclipse ADT in a windows 8.1 for the android dev' work.
    I have been attempting to apply the tutorial
    http://azure.microsoft.com/en-us/documentation/articles/notification-hubs-android-get-started/#connecting-app
    The registration process works correctly and I receive a registration ID from the Google CloudMessagingService which i then use to register a NotificationHub (from which I  receive a registration ID )
    Where I seem to be having problems is when i try and send an Android  (Random Broadcast) message from the Azure management Portal.
    {"data":{"message":"Notification Hub test notification"}}
    The message never arrives at my app (in the emulator) as 
    @Override
    public void onReceive(Context context, Bundle bundle) {
    ctx = context;
    String nhMessage = bundle.getString("message");
    // sendNotification(nhMessage);
    mainActivity.DialogNotify("Received Notification",nhMessage);
    doesnt fire. (but does in the registration process)
    (Azure says the message was delivered)
    So I'm wondering if theres something i'm missing - perhaps surrounding the proxy server i'm behind? Or something else to do with the emulator?
    regards
    Bryce

  • Is there anyway of getting Render Finished /Background Task Completed notifications in FCPX?

    Hey all
    Does anyone know if its possible (Maybe with Growl or another 3rd party plugin) to get on screen notifications to pop up when rendering/background tasks have been completed in FCPX?
    I usually like to let my files import/render while I'm using other programs on my Mac, but some kind of pop up would be great to notify me that the task/render has completed. Any ideas if this is possible anyhow?

    Jon Chappell wrote:
    We have an app for this but we deliberately didn't add support for FCPX because it has background rendering and the alerts would be going off constantly while you're working. But if there's demand we'll definitely add it.
    http://www.digitalrebellion.com/blog/posts/how_to_get_render_notifications_on_yo ur_iphone.html
    Hi
    Yeah, I have that, but noticed it doesn't show alerts.
    I think it would be a great if you could get it to only show an alert pop up if your NOT selected on FCPX (Looking at internet/selected on another program). Either with or without a noise as well.
    You could also have an on/off for it, so if users dont want to use this feature they dont have to.
    I'm currently importing 11 x 4GB 720p 50fps 12 minute clips one at a time (With the following settings) and I'd like to be alerted when each one has finished importing/rendering etc.
    I dont want to import them all at once as its going to take about 10 hours and I dont plan on having my Mac booted up for this entire time, so one at a time makes it easier to manage.

  • Ugliest bug: under some conditions app crashes when activated from push notification. Any workaround?

    Hi, 
    I encountered the following serious bug. 
    Steps to reproduce:
    - start the app which uses "Fast App Resume" mode
    - block the phone. 
    - ensure the app is tombstoned. This can be done by using "Tombstone upon deactivation" VS option.
    - send the toast notification to the app. 
    - Open the app from toast. >>>> the app either CRASHES or stays on the same page, without proper navigation. Both outcomes are unacceptable.
    I created a test solution, which demonstrates this bug: https://db.tt/LyarfmDK
    It contains two projects, both are nothing more than msdn samples with smallest modifications:
    - fast app resume sample
    - push notifications sample.
    To reproduce:
    - start fast app resume project under debug with "tombstone" option 
    - copy the push uri
    - start the "send push" sample. Paste PUSH uri and send the push notification.
    - tap on the notification ==>> either crash or no navigation.
    Well, I believe this is a very serious issue and must be fixed ASAP. 
    Any workaround for now?

    I downloaded your zip file and there are projects all over the place.  If you want us to look into this, please label projects nicely, place them where I can figure out which one goes where, and then give me easy to follow instructions to reproduce
    the problem. 
    Matt Small - Microsoft Escalation Engineer - Forum Moderator
    If my reply answers your question, please mark this post as answered.
    NOTE: If I ask for code, please provide something that I can drop directly into a project and run (including XAML), or an actual application project. I'm trying to help a lot of people, so I don't have time to figure out weird snippets with undefined
    objects and unknown namespaces.

  • Air 3.4 iOS Push Notification is not fired when app is not running and is not in background

    Hello,
    I'm making an Air iOS application which uses the iOS Push Notification from Air 3.4.
    All is working perfectly except when I receive notifications when the app is not running and is not in background (The app is killed).
    I suppose the RemoteNotificationEvent.NOTIFICATION must be dispatched when I receive a notification even if my app is not currently running or in background ?
    Do you have already get the same issue ? Do you know what can prevent the notification to be handled ?
    Thanks,
    Loïc

    issue has been fixed in the build available at http://labs.adobe.com/downloads/air3-5.html.
    You would now have to attach listener to InvokeEvent. For cases, when application is killed, InvokeEventReason will be InvokeEventReason.NOTIFICATION. The notification payload can be accessed by the following code
    protected function onInvokeEvent(event:InvokeEvent):void
         trace("Invokehandler called .... \n");
         trace("reason: " + event.reason + "\n");
         if( event.reason == InvokeEventReason.NOTIFICATION)
                        var payload:Object = Object(event.arguments[0]);
              for (var i:String in payload)
                    trace("Key:value pair " + i + ":" + payload[i] + "\n");
              // TODO: DO THE NEEDFUL ON RECIEVING A NOTIFICATION HERE

  • Invalid device in Apple push notification

    We have done an apple  push notification for an iphone application and its working fine.Using the APNs certificate, it is displaying the push message. Suppose the corresponding application is uninstalled from a particular device and I don't want to push the message to that device any more. How could I identify whether the device to which the messages are send is valid?
    Any sample CF code or link for this is appreciated.

    Greetings Prem garigapati,
    I understand you are receiving a message regarding an expiring certificate. Are you using a version of OS X Server on your computer? This article has additional information which may be helpful:
    OS X Server: How to renew expired push certificates - Apple Support
    If the certificate you use with the Apple Push Notification service (APNs) has expired, you can renew it using OS X Server.
    Use these steps to renew any push notification certificates that have expired:
    Open the OS X Server app.
    Select your server in the Server app sidebar, then click Settings.
    Click the Edit button next to the “Enable Apple push notifications” option.
    Enter your organization's Apple ID in the sheet that appears, then click Renew to renew the expired certificate.
    Deselect (uncheck) the “Enable Apple push notifications” option.
    Select (check) the “Enable Apple push notifications” option.
    Thank you for contributing to Apple Support Communities.
    Best,
    Bobby_D

Maybe you are looking for

  • NQS ERROR:14025 NO FACT TABLE EXISTS -after migrating from 10g to 11g

    NQS ERROR:14025 NO FACT TABLE EXISTS AT THE REQUESTED LEVEL OF DETAIL in all the reports after migrating from 10g to 11g ... then we applied the patch (One-off Patch for Bug: 11850704) for the error <<NQS ERROR:14025 NO FACT TABLE EXISTS AT THE REQUE

  • Buy Book doesn't work in iPhoto 6

    I have completed a Photo Book. However, pressing Buy Book does nothing at all. I have bought Apple iPhoto books before without any problems. One-click ordering is enabled for my account in the Apple Store (heard this as one possible solution) and I h

  • Final cut express not opening

    everytime i try to open final cut express, i get a message saying that the graphics card is missing. i thought all makes came with graphic cards. could my program be to out of date to use?

  • IFRS Reporting in SAP

    Hi, Can anybody suggest how companies are handling IFRS Reporting in SAP. How IFRS adjustment calculations are carried out. Any help will be rewarded. Regards Mahendra

  • Is it possible to edit videos purchased from iTunes in FCP?

    I know that disseminating these videos is not permitted, but if I wanted to edit for my own practise, is there a way to convert the iTunes video files into something that FCP will accept? (even if the resolution is bad)