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

Action Buttons and click event on a message #335

Open
atomoc opened this issue Apr 21, 2018 · 4 comments
Open

Action Buttons and click event on a message #335

atomoc opened this issue Apr 21, 2018 · 4 comments

Comments

@atomoc
Copy link

atomoc commented Apr 21, 2018

@raix hi!
Explain please. When sending a message, you need to specify what to do when clicking on the message. I understand this is implemented in the phonegap-plugin-push, but how can I achieve this here? Perhaps via Meteor.call or Push.on... In this case, it is necessary that the parameters be transmitted - this is very necessary.

@atomoc
Copy link
Author

atomoc commented Apr 21, 2018

A simple opening of the application is not suitable.

@atomoc
Copy link
Author

atomoc commented Apr 21, 2018

Also this topic was touched on the forum meteor.

@raix
Copy link
Collaborator

raix commented Apr 21, 2018

Hi @atomoc I've answered this question before (getting too old to remember where)

So there are two types of notifications:

  • one is when the app is in the background or closed
  • one is when the app is open.

Now if the app is closed thats the easy case cause the os will take care of things.

If the app is open if would be pretty bad UX if the native notifications interrupted the user - that's where you come in... You have to handle the notifications when the app is open in a nice user friendly way - there is no single solution to it.

If you want to actually trigger a native notification then use the local notification system - there is a cordova plugin for it

@atomoc
Copy link
Author

atomoc commented Apr 21, 2018

It is important that this works when the application is closed. Cordova plugin is not suitable, because js does not work when the application is closed.

It is necessary for Push to handle the events that occur when you click on the notification (for example), is it really unrealistic?

In the future, I will most likely transfer the application to the React Native..., I just do not believe that this plug-in is not capable of it.

Just say, is it capable or not? I'm just tired of beating my head against the wall )

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