Push Notificaion capability - nativescript

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.

Related

Check if user has push notification turned on

I need some help. We have an app build with React Native that communicates with API that is build on Laravel. For push notifications we used One Signal. It works great, no problems there. The only issue we have is how can we know if user has push notifications enabled for our app? Is there any way that through One Signal we can check this one out?
Any help will be highly appreciated.
found this post similar to:
How can i check push notification permission for both ios and android in react native?
get the permission status then update to server using api from laravel.

how to use apple push notifications using ios calendars built-in app and without an app

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/

Two Ionic 3 Apps with the same OneSignal App ID + Laravel Server

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");

How to manage Push Notification from Web API to Android App with Firebase?

How to manage Push Notification from Web API to Android App using Firebase?
I have a web application,and want a Push Notification, while any changes on web application database then it will show a notification to my android app.
How to do this?
Check this link https://forums.xamarin.com/discussion/89731/how-to-implement-fcm-in-xamarin-forms I followed this for my app and worked perfectly!

Google SignIn in Android and IOS with backend server

I am developing an app in Android and IOS. I want to use the Google Sign In to login in the app.
In Android I use the client ID of the backend server, but in IOS I have to use the IOS app client ID to login.
Is not possible to use the backend server client ID in the IOS app?
Google Documentation
https://developers.google.com/identity/sign-in/ios/backend-auth
Regards
I work on the team at Google: yes, unfortunately, this is a known deficiency and inconsistency of the iOS SDK for Google Sign-In. We're working on some changes and I'll update this answer when this is resolved.
For now, your backend server will have to determine what client the token is coming from and check appropriate audience. Very sorry for the trouble :/

Resources