Need some interface that generate fake device token to test push notification - push-notification

I am working on push notification module at server side that will send push notification to mobile device.
As I am backend developer only, I need some online portal or similar kind of service that generate fake device token and I as a developer can use that device token and send notification on it. So that portal will display me notification text and other payload info.
I try to search things online but no luck. I have also asked to many mobile developer and my colleagues for this. They don't have any idea for this.
I am not sure that this kind of service is available yet or not.
So thought, will try to ask genius people of this forum.
Thanks in advance.

Related

Modify push notifications using capacitor plugin

Is it possible to modify incoming push messages using #capacitor/push-notifications? I‘m sending messages using Firebase Cloud Messaging to my Android and iOS apps, which are encrypted by my backend and should be decrypted by the app. To achieve this, I must modify the messages shown in the notification centers after receiving them.
I didn‘t find any documentation on this, so I would appreciate any hint into achieving this. If this is not supported, is there any other solution I could use?
You can send a data notification (which is not automatically displayed by Android) and then use #capacitor/local-notifications to show the modified notification.

how can i send notification from flutter-web to flutter-application?

I had a project from two application(flutter application) and three flutter-web on the same firebase i want to send notification from the web to the application.
i searched alot for this and i cant find any answer or solution for this case.
I had a project from two application(flutter application) and three flutter-web on the same firebase i want to send notification from the web to the application.
i searched alot for this and i cant find any answer or solution for this case.
I hope you understand that we can't give you the finish solution here. I would recommend to you to go trough this docs.
What we can do is to explain it a little bit. For your solution I would recommend to use FCM. And how they work is that:
you use the Firebase SDK to receive a token from the client device.
you store that token on one of the Firebase databases
when sending a push notification to a device you would need to do it from the Firebase Cloud Functions and use that token to send the message to it. When you do that the device from witch the token is will get the message.
It doesn't matter what platform the device is (web, ios or android). All of them can receive Push Messages (in Web most of them but nor 100% all).
From your use case I would not recommend to use topics. You want to send messages from device to device and therefore the tokens are the best solution for it.

Send notification when something change in Database

I want to implement logic to my xamarin.Forms application (for android and Ios), which sends notification to user when something new appears in database. For example when other user add an invitation to database, invited user will receive it. Thanks
If you want to send out push notifications, take a look at One Signal. It is free to use and in my experience is also the easiest to set up with Xamarin.Forms. You would need to follow their tutorial on how to get things set up for iOS, Android, and your server side implementations. After that when something in your DB changes just send a push notification from your server.
Here is a link to the Xamarin.Forms setup: One Signal - Xamarin.Forms
You can also use them to notify the users via email, however I have not tried that.
It depends completely on your underlying backend and services (REST? Websockets?, ...) and is to general to answer clearly.
For a good instruction how to use notifications in Xamarin.Android, take a look here:
Local notifications on Android

Appcelerator push notification internationalization

I deployed a few apps which are used in several countries.
Now I'd like to send notifications but I can't found a way to send notifications in different languages.
My need is to send some news to the users, so it's not convainant for me to integrate translation into the i18n files.
I suppose i'm not the first to have this kind of question but I didn't found a lot of help on internet.
Please don't hesitate to share some tips or good practice about that
Thanks in advance,
Arnaud
APN and GCM themselves are only aware of the token for each device. It's Push Service Providers like Arrow Push that keep track of meta information on each token.
For Arrow Push you could create a separate channel for each language. Then when you send out a push notification you will need to do so for each language separately and target the related channel.
To subscribe a token/user to a channel see:
http://docs.appcelerator.com/platform/latest/#!/api/Modules.Cloud.PushNotifications-method-subscribeToken
To send to all tokens/users in a channel see:
http://docs.appcelerator.com/arrowdb/latest/#!/api/PushNotifications-method-notify
Or send via the Appcelerator Platform Dashboard.

Send Parse Push Notifications with ASP.net

I have developed an android application with the Parse push notification service and I can send notification from the Parse website.
How can I send push notifications through my own website using ASP.net? Is there any way?
I checked the Parse documentation but i get confused, I would really appreciate it if someone would help me.
Thanks
I ran into similar confusion. I wasn't even sure how to properly setup the user so that I could send a push notification directly to them. Then I found the following post:
Channels and Targeted Push Notifications
Note the last item under the Channels heading:
Most apps might find it useful to have a channel for each user so that
they can send messages to a user across all their devices and have
users follow others in the app.
So, now I know that I should subscribe each user to a channel that uniquely identifies the user (e.g., the 'bobsmith#foo.org' channel).
After I have subscribed the user to their channel, I can call Parse's REST API via my ASP.NET application. See Sending Pushes in the Parse REST API Developers Guide.
For an ASP.NET/C# example of how to submit a push notification check out this answer.

Resources