Native script support for Amazon AWS SNS (push notifications) - android

I built an app ( which involves push notifications ) in native android code.For push notifications I used Amazon AWS SNS.
I'm trying to build the same app using "Native Script" ,but I'm failed to use AWS SNS in Native Script. It seems there is no support for AWS SNS in "Native script" yet.
Any Ideas?
Thanks in advance.

If you have already build the app native - maybe you can wrap the notifications in a plugin and reuse it in native script: NativeScript Plugins

Related

Develop Flutter Plugin for QuickBlox vs Develop Native App using Native Plugins

I need to develop a mobile application for iOS and Android with Chat and VOIP calling functionalities. One of the tools identified by client for Chat and VOIP is QuickBlox (https://quickblox.com/).
QuickBlox provide Native Plugins for iOS and Android with APIs for Authentication, Users, AddressBoox, Chat, Video Calling, Content, Push Notifications.
I've been using Google Flutter in the past 6 months to develop apps, and I could have used Google Flutter and Google Firebase to achieve all of the client requirements except for VOIP calls.
Should I build a Flutter Plugin as a wrapper for the native plugins or should I develop Native apps with 2 code bases for iOS and Android.
I have not built Flutter Plugins previously, will I save time by going Flutter + Flutter Plugin for QuickBlox?
Thank you.
https://quickblox.com/
https://quickblox.com/developers/QuickBlox_Developers
QuickBlox has recently released an SDK for Flutter, documentation is available here. There is also a step-by-step guide on launching QuickBlox Flutter SDK.
Recently I came across similar requirements. We had tried to go with the flutter plugin approach using Flutter Method Channel. It acts as the bridge between the native side of the app and the flutter codebase. You can have a gist over the demo project which provides chat listing for now Demo.

Get iOS ID not FCM Id in Ionic 2 with Phonegap Push Plugin

I'm developing app in Ionic 2. I installed phonegap push plugin https://github.com/phonegap/phonegap-plugin-push to get notifications and get device ID.
When I'm in Android App the device ID of return is a GCM ID, but when I'm in iOS he return FCM Id, and I don't need that, I want get Push Plugin register:
This is example of my issue:
FCM Registration Token: cqs2H3ED5u8:APA91bEVQGi0SfbC1Yau1xN_PJB0SOmB50PgHMNG2zCqw4bzWfLruXfqKoIT7DeJnz5K37CqQLIs9F-CXfwurC-UhZjfLNUvnEfCZDpIleW_6xGZYZKokNcIPouGHdvdSnVMhHu6mITh
Push Plugin register success: <5c27c9a8 87e28030 735f8bc7 e27ab8de e6d6538f c9759e70 26c306a6 fa0ac2cc>
How to configure push plugin init to make this change?
I open issue on Phonegap project. https://github.com/phonegap/phonegap-plugin-push/issues/1982
The answer was
“Yes, when you remove the GoogleService-Info.plist from iOS it uses APNS but as long as you keep delivering google-service.json it uses FCM. Actually, Android won't work without the google-service.json file”
If you want use APNS on iOS platform you have to remove GoogleService-info.plist (is optional on iOS and necessary on Android)

Can I use the same Firebase project to get push notification for both android and iOS application?

I have create a firebase console project for testing push notification service and use the json.plist file in an android project. Now I want to test it for iOS application. So can I use the same firebase console project for iOS push notification implementation or need to create different google firebase console project and plist file?
Yes, you can use the same Firebase Project when using FCM to both Android and iOS.

Does AWS Mobile SDK support cordova based hybrid application?

I am planning to develop hybrid application(targetted for iOS and Android) using ionic, Angular and cordova, the app will majorly rely on AWS services :amazon s3 for storing and sharing media, SNS for sending push notifications, utilizing lambda for server side logic and cognito for identity
However, I could not find any cordova/phonegap based support in their SDK page
Just confirming, is there no support for cordova based hybrid applications?
Is React native is the only option?
Thanks!
There is plugin by telerik
http://plugins.telerik.com/cordova/plugin/amazon-aws
cordova plugin add https://github.com/Telerik-Verified-Plugins/Amazon-AWS --variable ACCESS_KEY=<your Access Key> --variable SECRET_KEY=<your Secret Key>

Phonegap Push notification to ios using GCM

I need inputs on which plugin to use to make the ios push notification working with GCM. I am using phonegap, sencha touch 2.
I have configured GCM, provided the p12 , pem for development. My ios certificate is correct as I am able to send notification to ios through certificate generated using APNS with same p12(pem) file. Phonegap push notification library which I am using is not supporting the ios GCM notification(it supports native ios and gcm android).
I am using :
I found that there is another plugin which does offer new ios GCM integration. Here is the one I found:
https://github.com/gonzaloaune/GCMPushPlugin#readme
When I try to include the plugin in config.xml then build fails.
build fails with message as
The following build commands failed:
CompileC build/God.build/Release-iphoneos/God.build/Objects-normal/armv7/GCMPushPlugin.o God/Plugins/cordova-plugin-gcmpushplugin/GCMPushPlugin.m normal armv7 objective-c com.apple.compilers.llvm.clang.1_0.compiler
(1 failure)
I am not sure if it is failing as if plugin does not exist ? Anyway my question is which phonegap push notification plugin to use which support ios and android both through GCM.
Please share some pointers on this.
thanks,
amit
I did solved the issue and just providing a answer here for those who are facing similar issue. Problem was the phonegap push plugin which I was using was supporting only GCM and not iOS APN notifications. I did google and I found the correct plugin to use.
https://build.phonegap.com/plugins/1199
With this all Google (GCM) and ios (APN) notifications are working without any issue
https://build.phonegap.com/plugins/1199 is outdated and Adobe Phonegap build does not support it (last support till November 2016). So now using a different phonegap push notification(phonegap-plugin-push) plugin which is supported.
https://github.com/phonegap/phonegap-plugin-push
This is working with sencha touch and phonegap build. Notifications are working with GCM, APNS on ios and android

Categories

Resources