I am developing a Uber-like project using Ionic 3. There is an app for the passenger and another one for the driver. Both need to subscribe to OneSignal notifications.
The problem happens when my Laravel server needs to deliver a notification: Both apps have the same OneSignal player ID (based on the device instead of app id), that is, a notification that should be handled by the passenger can be sent to the driver, if both apps are installed on the same device.
So, I need help to know the best way to overcome this problem:
Create another OneSignal app and find a way to make my Laravel server choose which ONESIGNAL_APP_ID and ONESIGNAL_REST_API_KEY to send the notifications to the right app. (Practical, but I'm not sure if this is possible).
Generate another OneSignal Player ID for one of the apps by changing the OneSignal plugin source code. (This solution sounds very stupid, but would solve everything at once)
Make app 1 open app 2 if notification should be sent to app 2. Find a way to pass notification information between apps (deep links?) and make app 2 treat the received information as it was the original notification. (It would be necessary to make it work on Android as well as on iOS. Would it be worth it?)
Just use a service for push notifications that can send the notification based on app id and re-configure the Laravel server.
Which one would be the best alternative? Can there be another one?
My advice is to use Tags. In driver app you will do something like this.
this.oneSignal.sendTag("driver", "true");
this.oneSignal.sendTag("passenger", "false");
and for passenger :
this.oneSignal.sendTag("driver", "false");
this.oneSignal.sendTag("passenger", "true");
Related
I am currently working on an web application, which need to implement a notification system, just like Facebook and Youtube does. (Not mobile PUSH Notification. Just to show how many notifications are in the notification couter and, when soneone expand it, show all notifications. Just as Facebook) What I need to know is, what is the following best method to use.
1.Websocket
2.SSE
3 XMPP
Our application is on budget and, we are running it on a VPS server.
I am developing mobile app by using nativescript with angular. For earlier version of the app, we didn't include Push Notification when we published the app on both stores. Now, we included Push Notification in the app. It is OK when I published the app on Google Play Store. But when I built the app to upload on the Apple Store, I got the following error.
If you already this problem and solved, please let me know how you solved it.
You need to activate Push Notification capabilities from xcode for your provisioning profile.
Check this questionXcode Push notifications
Go to https://developer.apple.com/ and edit your App Id settings.
Should be under App Ids inside Identifiers in left hand side. and then select your app id's Setup and configure services for this App ID. Enabled the Push Notifications.
You need to regenrate the provison profile for this is.
I have a client that created a custom mail server that has the calendars feature and wants the users to be able to sync their calendars in iOS Calendars built-in app.
I do not know how do this using the built-in iOS Calendars App.
I tried to setup in the Apple Development Account an app that use the Apple Push Notifications service but it looks like I have to create an application.
I didn't find any information on web.
Any suggestion where to start?
Thank you.
The "native" protocol for the iOS Calendars app is CalDAV. So what you really want is to have your server implement https://www.rfc-editor.org/rfc/rfc4791
The Calconnect Developer's guide is a good source of information for such a project: https://devguide.calconnect.org/Table-of-Contents
It lists some server side libraries that you probably want to build your implementation on top of: https://devguide.calconnect.org/CalDAV/libraries/
I'm working on GSuite application and wondered how my backend can be notified when new domain admin installs my app?
You can use the license notification api to retrieve a list of current installs. https://developers.google.com/apps-marketplace/v2/reference/licenseNotification/list
After installation the user will probably start or setup your app. You could add your own webhook notification when the user goes through this First Run Experience. (This is what we did)
There is another thing you might be able to pull off: As far as i know, an event is fired to Google Analytics on install. Maybe you can add an alert/webhook in Google Analytics.
However, i was having some problems with the events to show up in GA in the first place.
I have been developing in Windows Phone 8 for a couple of months. Currently, I am developing an app that consume some XML to show data. I know how the Toast notification works in WP8, however my doubt is about the following:
In the App I am working on, I would like to implement a kind of Toast Notification when a new data is available (from the source where the XML is extracted). So, is it possible? If so, how to implement it in WP8?
I don't know if you are familiar with the App of dictionary.com. In that App, there is an option to enable the notification for the word of the day. So, every day I recieve a different word in english. When I click in the notification I can see it's meaning.
Any clue, link, post, code or suggestion would be very appreciate
Thanks in advance
Regards!
There can be many ways. My idea will be to use Azure Mobile Services. To explain, let me take same fictitious Dictionary.com example. The WP app will be bound to Azure Mobile Service and it will show all the words fetched from that service. Whenever, I add a new word to this service, using Push Notifications, it will send notification to all my users who've installed Dictionary.com app, stating new word is added.
You can find more information here: click here