-
Notifications
You must be signed in to change notification settings - Fork 986
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fetch messages in background when Push Notification is received #3451
Comments
Looking at the Firebase docs, this could be achieved by sending a collapsible message, containing either simply data, or perhaps a hybrid (data + notification). It would work on both iOS and Android. |
This GHI could be improved #2869 so it can still access the messages after the app is suspended. Otherwise the app will only be able to retrieve messages if the app hasn't yet been terminated/suspended by the OS. |
This issue has been automatically closed. Please re-open if this issue is important to you. |
The level of effort required to implement this issue has gone down with #6893 which already implements local notifications. |
@pombeirp Should we still implement this as a bounty? |
@StatusSceptre Yes, I believe it makes sense. |
Issue Status: 1. Open 2. Started 3. Submitted 4. Done This issue now has a funding of 180.0 DAI (180.0 USD @ $1.0/DAI) attached to it as part of the Status-im fund.
|
@dhamaniasad are you working on this? I was looking at the issue description, and quite a bit has changed since it was initially written, namely we now don't use notifications but instead data-only notifications, so in the case of iOS, if the app isn't running it won't be invoked by the OS to notify it of a new PN (that is an issue we're looking into as well). I happened to be working in this area of the code earlier today and noticed it would be a quick win to trigger the fetching of messages (working only on Android, and as long as the user is signed in). Forgot about this existing bounty :-( Sorry about that @dhamaniasad. Would be cool if you could solve the iOS background sync issue though. |
@pombeirp No worries, I hadn't realized when I applied for the bounty that this is not a regular React Native project but that in fact it uses Clojure. So I don't think I'd be able to solve the issue right now anyway. I'll remove myself from the issue on Gitcoin. But it'd be cool if you can look at #7398, a PR I made for another bounty. |
Signed-off-by: Pedro Pombeiro <[email protected]>
I believe this has since been implemented elsewhere, so we can close the issue. |
Issue Status: 1. Open 2. Cancelled The funding of 180.0 DAI (180.0 USD @ $1.0/DAI) attached to this issue has been cancelled by the bounty submitter
|
User Story
Description
Type: Features
Summary:
The application could run in the background upon reception of a notification to fetch recent messages, decrypt them and consequently send the signal to Mixpanel.
Expected behavior
Actual behavior
Solution
Summary:
It could be done using
background app refresh
feature on iOS which allows an app to wake up for 30 sec in the background upon reception of a notificationSimilar feature should exist on Android.
onMessageReceived()
(Android)/didReceiveRemoteNotification()
(iOS), the app should trigger a network sync to retrieve messages, in a platform-specific way that allows for long-running tasks, and create a local notification.The text was updated successfully, but these errors were encountered: