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

The Background Fetch Id might collide with other apps #180

Open
younesouhbi opened this issue Apr 9, 2024 · 1 comment
Open

The Background Fetch Id might collide with other apps #180

younesouhbi opened this issue Apr 9, 2024 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@younesouhbi
Copy link

First, thank you for this plugin. It has saved me a lot of time and made my app idea possible without noticeably more development time.

I have a question regarding the Id used for the background fetch, currently, it's set to "com.gdelataillade.fetch". If two apps that use your plugin are deployed to the same device, will that cause an issue?

According to Apple, these identifiers need to use reverse URL, which is used to guarantee uniqueness. Are devs encouraged to change this string to represent their apps, because the current value is too generic as it doesn't contain the name of the app for example.

Thank you!

@younesouhbi younesouhbi added the bug Something isn't working label Apr 9, 2024
@gdelataillade
Copy link
Owner

gdelataillade commented Apr 10, 2024

Hi @younesouhbi

I did some research and it looks you're right ! Two apps in the same device that uses my plugin could have conflicts. I will have to find a way to let the plugin users choose their own id for background fetch.

To be honest I have a lot of other important issues to deal with at the moment but I'll add it to my to do list. In the meantime, you can just directly modify the id in the code, in the plugin's SwiftAlarmPlugin class (ios/Classes/SwiftAlarmPlugin.swift) and in your Info.plist (key BGTaskSchedulerPermittedIdentifiers).

Thanks for reporting this issue and I'll keep you updated !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants