Skip to content
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

[question]: Is it possible to send a custom notification for the 25s service extension timeout? #777

Closed
1 task done
TheMeanCanEHdian opened this issue Oct 29, 2023 · 1 comment

Comments

@TheMeanCanEHdian
Copy link

TheMeanCanEHdian commented Oct 29, 2023

How can we help?

I have some internal logic for Android and iOS to fetch images for notifications but if a user's internet is poor enough it can fail to download the image in time and the service extension times out.

The notifications are end-to-end encrypted so when the original notification is displayed it doesn't contain any useful information.

Is there a way to provide OneSignal with a notification in the service extension to use specifically in case it times out?

Code of Conduct

  • I agree to follow this project's Code of Conduct
@emawby
Copy link
Contributor

emawby commented Nov 6, 2023

@TheMeanCanEHdian This is not something that OneSignal has a built in solution for and not something that I have seen done before, but it may be possible by editing the code in your NotificationService file to manually call the contentHandler with the notification content when the extension is about to time out.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants