question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Can't receive notification on background and some other problems [IOS]

See original GitHub issue

Hey,

İ did everything but i still can’t receive any notifications when my app is on background. Here is an example request:

{
  "to": "XXXX",
  "content_available": true,
  "priority": "high",
  "notification": {
     "title": "Please",
     "body": "Work"
  }
}

Other than that, i can receive notifications on my ios 9 iphone on foreground, but i don’t receive anything on my ios 10 iphone.

I found something like this: https://firebase.google.com/docs/cloud-messaging/ios/receive

And there is one more thing i didn’t understand, even when i don’t allow notifications, or disable from settings, getFCMToken() function still returns a token, and i can send notifications.

So i am not sure if this library or FCM is stable, or is it a waste of time trying to adapt it atm.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:3
  • Comments:45 (17 by maintainers)

github_iconTop GitHub Comments

1reaction
arunshancommented, Jan 22, 2017

@jnrepo Enable Push Notifications in Capabilities and @evollu Please add enable Push Notifications in Capabilities tab in Xcode project. There seems to be a lot of configuration to get push notifications working but we tend to forget the most basic things. 😃

1reaction
tarr11commented, Oct 7, 2016

I am using the simulator, it appears you can’t do remote push notifications on the simulator? http://stackoverflow.com/questions/21741259/push-notifications-in-mavericks-ios-simulator

Read more comments on GitHub >

github_iconTop Results From Across the Web

Notifications not working in iOS 16? 9 Ways to fix it! - iGeeksBlog
To fix Notifications not working on iPhone running iOS 16, 1. Turn off Focus on iPhone, 2. Add exceptions to Focus, 3.
Read more >
Top 8 Ways to Fix Notifications Not Working on iPhone
Top 8 Ways to Fix Notifications Not Working on iPhone · 1. Restart iPhone · 2. Disable Focus Mode · 3. Disable Scheduled...
Read more >
How To Fix Notifications Not Working On iPhone In iOS 15
Open Settings and browse for Notifications -> Scheduled Summary. Disable the Notifications Summary or remove from the summary apps that you want ...
Read more >
10 Steps to Fix iPhone Email Notifications Not Working in the ...
Step 6. Let the Mail App Refresh in the Background · Go to Settings > General > Background App Refresh. · Tap Background...
Read more >
How to fix notifications that are not working on iPhone after ...
First solution: Quit all apps running in the background then reboot your iPhone. · Press and hold the Power/Side button and either of...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found