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/idea] Push notification possible ? #33

Closed
ghost opened this issue Jan 13, 2019 · 6 comments
Closed

[Question/idea] Push notification possible ? #33

ghost opened this issue Jan 13, 2019 · 6 comments

Comments

@ghost
Copy link

ghost commented Jan 13, 2019

Hi,

Is it possible with the Flutter Parse SDK to send push notification ?

For exemple, send one notification to a specific user with his deviceToken and handle the push notification to redirect the user according to the payload of the notification ?

In advance, thank you.

@phillwiggins
Copy link
Member

Hey,

It's not currently possible to do this. In all honesty, I probably wouldn't look at doing this any time soon. I'm not confident that it would be best to wrap the Flutter Parse SDK around notifications at this point with Flutter being so immature. I'd probably wait a good while until notification libraries are wrote by others and then wrap Flutter Parse SDK around their implementations. For now, I think the database, functions, config, users etc should be safe to work with.

@pcg92
Copy link
Contributor

pcg92 commented Jan 21, 2019

Hello,
@phillwiggins Is it possible to extend the flluter apps to add the native sdk and implement parse notifications?

@phillwiggins
Copy link
Member

phillwiggins commented Jan 21, 2019 via email

@pcg92
Copy link
Contributor

pcg92 commented Jan 21, 2019

Ok thanks!, Im going to try it this week

@phillwiggins
Copy link
Member

phillwiggins commented Jan 21, 2019 via email

@pcg92
Copy link
Contributor

pcg92 commented Jan 25, 2019

@phillwiggins Push notifications are working, I have implemented the native android sdk extending the native Application class.
Could be great implement the "Installation" class in dart, because Im needing to call a native method like this:

new MethodChannel(getFlutterView(), CHANNEL_INSTALLATION).setMethodCallHandler(
            new MethodChannel.MethodCallHandler() {
              @Override
              public void onMethodCall(MethodCall call, final MethodChannel.Result result) {

                  switch (call.method) {
                      case "getInstallationId":
                          ParseInstallation.getCurrentInstallation().saveInBackground(new SaveCallback() {
                              @Override
                              public void done(ParseException e) {
                                  if(e==null){
                                      result.success( ParseInstallation.getCurrentInstallation().getInstallationId());
                                  }
                                  else{
                                      result.success("");
                                  }
                              }
                          });
                          break;
                      default:
                          result.notImplemented();
                  }
              }
            });

And with flutter Im going to save the current user in this installation.

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

2 participants