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

fix background notification not being called with obfuscated dart code #45

Closed
wants to merge 1 commit into from

Conversation

oexza
Copy link

@oexza oexza commented Jul 15, 2022

No description provided.

@pushy
Copy link
Owner

pushy commented Jul 16, 2022

Hi @oexza,
Thanks for the PR. When we build using the aforementioned @pragma('vm:entry-point') annotation, it breaks functionality of both obfuscated and non-obfuscated isolate background execution.

It might have to do with the Flutter version we're using. Therefore, at this time, we will not be merging the PR. However, we're glad you were able to resolve the issue and get obfuscated builds to work for you.

@pushy pushy closed this Jul 16, 2022
pushy added a commit that referenced this pull request Sep 15, 2022
@pushy
Copy link
Owner

pushy commented Sep 15, 2022

Hi @oexza ,
Thanks for your patience.

We believe commit 57a2178 has now resolved this issue.

  1. Please update the Pushy Flutter SDK in your app by editing the pubspec.yaml in the root directory of your project and updating the pushy_flutter package version to 2.0.9:
pushy_flutter: 2.0.9
  1. Run flutter pub get to fetch the new version of our SDK.

  2. Please add the following line of code to your lib/main.dart, right above the void backgroundNotificationListener() method declaration:

@pragma('vm:entry-point')

Please run your app again with --split-debug-info and let us know if the problem is indeed resolved.

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

Successfully merging this pull request may close these issues.

2 participants