Amazon Mobile Analytics for ionic Framework - amazon-web-services

I'm would like to know how to connect Amazon Mobile Analytics with my ionic application. There aren't any tutorials explaining how to use it with ionic so any help will be appreciated.
I followed the documentation provided by amazon / https://github.com/aws/aws-sdk-mobile-analytics-js / but I only got it to work in the browser. It's not working when I'm testing it on mobile devices.

Here you can find a blog post describing how to use Amazon Mobile Analytics in Ionic apps.
If this is what you already did - do you get any error message when testing on a mobile device?
EDIT
It's important to whitelist all calls to *.amazonaws.com URLs so requests from the Amazon SDK wont get blocked!

Related

Is AWS AppSync applicable for Xamarin?

I am using dynamoDB in my application ,
but I need my application to work in the offline mood too ,
so I am trying to use appsync for the offline mode .
but I don't know if it is available for xamarin or not
I see in its documentation that it supports android and ios ,
but did it support Xamarin (directly or even implementing it in android and ios native first then attach it to Xamarin ? )
appsync documentation : https://docs.aws.amazon.com/appsync/latest/devguide/welcome.html
and if it is available is there is any tutorial or sample code for this ?
any help please ?
Thank you .
Well, I think you should go through their documentation for Xamarin and .Net
In the Setting Up the AWS Mobile SDK for .NET and Xamarin, they have given their own samples to refer to!!
Following are the links for each service that they provide for Xamarin
Cognito Identity
Cognito Sync
Dynamo DB
Mobile Analytics
S3
SNS
From what I understand App sync is not a part of the available official SDK's
But if you check the GitHub issue for the same which is here https://github.com/aws/aws-sdk-net/issues/901 and check the comment by NeilBostrom he has a way of doing it through GraphQL
Goodluck!
Feel free to get back if you have queries

How Should I integrate Amazon RDS in Flutter? Any native dart support package?

how to use AWS RDS in flutter dart code?
I went through - this post
It says -
I work on the AWS SDK team. I am not aware of any plans to support Flutter at this point. I will take this to my team as a feature request and will post back
Should I do as suggested here?
Build your own service layer using HTTP, gRPC that talks to some backend service that provides access to a data store. You can do this with Express, Rails, CloudFunctions, etc.
You can either use dart code to do HTTP/gRPC, or use Platform channel to wrap dart code around native iOS and Android code of AWS official SDK.
On another note, I'm highly concerned when you connect directly from mobile (Flutter) to database (AWS RDS). Please be aware that anything on mobile app can be reversed engineer, and your database connection credential is not safe. It's recommended to have only backend proxy, or at least severless (such as AWS lambda function) connect directly to database (not mobile or web frontend). The only exception is with Firebase Realtime Database because it has seamless integration with Firebase Authentication

Azure App Service web authentication guidance

I'm trying to get Google authentication working against Azure App Service from a web site and later hopefully from Cordova. There is a lot of information related to the old Azure Mobile Services, but not much on App Services. Microsoft did exclude tutorials on how to do it from web.
I included <script src="http://ajax.aspnetcdn.com/ajax/mobileservices/MobileServices.Web-1.2.7.min.js"></script>, don't know if this is still current?
Any pointers on how to handle authentication are appreciated!
This is possible using the Authentication/Authorization feature. Refer this article for more information: https://azure.microsoft.com/en-in/blog/announcing-app-service-authentication-authorization/
https://azure.microsoft.com/en-in/documentation/articles/app-service-mobile-how-to-configure-google-authentication/
AFAIK, there is no native support for Cordova in Azure App Service Mobile App. You will have to implement this yourself.

Integration of Amazon Cognito with Ionic for offline sync

I have searched a lot but i cannot find any article on integrating amazon cognito with Ionic using cordova for offline sync , is it possible to integrate apache cordova with cognito for offline sync
In this blog post, the author goes over the main steps to submit events to Amazon Mobile Analytics using PhoneGap as an example. The same general steps can be applied to any framework built around JavaScript such as AppGyver(supersonic), Appcelerator, Ionic, Famo.us, Intel XDK, and web pages.
https://mobile.awsblog.com/post/TxCMBFPXR2XWOF/Use-Amazon-Mobile-Analytics-with-your-JavaScript-enabled-apps

send data from iphone to azure

If I want to send some data from a mobile device to windows azure, is there any service that can help me?
Or do I need to create some REST services and call tham from the mobile? If I do this how should I assure that the sender of the data is the mobile and not some hacker? How should you secure that communication between the mobile ad the azure platform?
I suggest that you create REST or OData services in Windows Azure. As for securing, it might be a bit of a hard work. But you can start looking at Securing REST Services. The Windows Azure Access Control Service could help you with the tokens. There are various samples here. Maybe the sample for Windows Phone 7 could be in some kind of help here also. Another article on using ACS with iOS cabe found here. And also some quick overview of the Windows Azure SDK for iOS that supports ACS.
Basic flow: your application will get a security token from ACS, then send this token to either a REST or OData service. Your service will validate the token and take approriate actions according the result.