Bug 34896 - when app is in background dont read notifications after move to foregroud
Summary: when app is in background dont read notifications after move to foregroud
Status: RESOLVED NORESPONSE
Alias: None
Product: iOS
Classification: Xamarin
Component: Xamarin.iOS.dll ()
Version: XI 9.4 (iOS 9.2)
Hardware: Macintosh Mac OS
: --- normal
Target Milestone: Untriaged
Assignee: Bugzilla
URL:
: 34893 ()
Depends on:
Blocks:
 
Reported: 2015-10-15 05:48 UTC by torch
Modified: 2017-05-18 09:38 UTC (History)
4 users (show)

Tags:
Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
RESOLVED NORESPONSE

Description torch 2015-10-15 05:48:49 UTC
1) Notification arrives.
2) Notification alert/sound/badge works correctly and the notification is
displayed to the user.
3) iOS's ReceivedRemoteNotification does not fire until the user taps the
notification. When the notification is tapped, it fires which correctly
initiates the sync.

But when (ex. click on app icon) I get back to the backgrounded app (or open a closed app)
ReceivedRemoteNotification not firing. How read remote notifications when badges number ar > 0 and the app is open not from the notification bar.???


ps. my app has the "Remote notifications" background mode enabled in the plist
Comment 1 Prashant [MSFT] 2016-12-22 09:02:20 UTC
Did you add "content-available":1 to your push notification payload? The app won't be woken if it's in the background.

Your push notification payload should look something like

    aps = {
        "content-available" : 1,
    };

See - 
https://developer.apple.com/library/content/documentation/iPhone/Conceptual/iPhoneOSProgrammingGuide/BackgroundExecution/BackgroundExecution.html#//apple_ref/doc/uid/TP40007072-CH4-SW31
Comment 2 Prashant [MSFT] 2016-12-22 09:08:51 UTC
*** Bug 34893 has been marked as a duplicate of this bug. ***
Comment 3 Manuel de la Peña [MSFT] 2017-04-10 10:21:49 UTC
@torch can you please provide the info for @Prashant  comment?
Comment 4 Vincent Dondain [MSFT] 2017-05-18 09:38:43 UTC
We have not received the requested information. If you are still experiencing this issue please provide all the requested information and re-open the bug report. Thanks!