NativeScript + Angular2 analytics - angular2-nativescript

I am trying to use some analytics service with my {N} app.
I succesfully added Angulartics to the app, but don't know how to provide it with my (google analytics) key - there's no index.html, where I could write my key.
I checked Nathan Walker's seed, but I am failing to see how to configure the analytics service for NativeScript.
There are also plugins for analytics for NativeScript, but they don't seem to be focused on an Angular2 app.
How do I configure and use analytics in my app?

After searching and discussing on NativeScript's Slack I found, that a simple solution does not exist. These are my two options:
Implement a plugin
Integrate Firebase
I went with Firebase, since I needed to implement push notifications anyway.

Related

Flutter web with Google Place Photos

Successfully using the Google Places API to display location photos in an iOS app. However, apparently this API isn't meant for client-side apps so when I deploy my Flutter app to the web I get a bunch CORS errors.
Unfortunately the docs for the Google Maps API don't speak to Flutter implementations though I found these two Flutter plugins that allow you to work with it:
google_maps_flutter
google_maps_flutter_web
The only issue is that they only provide examples of working with Google Maps and not getting locations photos. Does anyone have experience with these plugins or this issue?
Ideally I wouldn't have to use a plugin at all, I'd like to just be able to hit some endpoint like I can with the Places API, though the docs for this don't mention being able to do this.

Detect the app version in Google play via Flutter

Google has updated its UI for Google Play Store. I was able to get the app version from a simple request/response for an app with the old UI.
My app is written with Flutter & Dart.
How to detect the app version in Google play? is there any way to fix it.
I got this from Google play via email: If you would like to fetch these details from an API, you may review our Google Play Developer API setup documentation to enable our Publishing API methods. You may refer to edits.tracks method in order to fetch the release versions of all your active tracks.
How to call Google play api from fluttar app and get the published app version?
Best regards

How Do I Track the Install Source from within an Ionic App?

Marketing specialists keep instructing my client to setup the analytics so that it can track where the user is being referred from so that we can optimize the advertising campaigns.
When I ask them how to setup the tracking correctly they send me to a link for the native Android & iOS google analytics libraries and provide the settings. I respond in kind stating that our app is not built using the native SDK's it is built using the Ionic Framework. They then have no response for this.
I have Google Analytics implemented as well as Facebook analytics. Both systems are actively tracking data. But apparently it is still not tracking the source of which advertising campaign the user originated from and / or installed the app from.
I've tried to find an example of this somewhere and talked to numerous people but from what I can tell it is not possible using the Ionic Framework.
Can anyone provide some insight into this? If this is not possible it seems like a rather large issue with the Ionic Platform that should be made more visible.
Thank you!

how to create google home app

I am new to google home. I had an experience in Amazon Alexa custom skill development. In Alexa, I had deployed my codebase in lambda function and also test my custom skill using actual Alexa device register with my email id.
So, Now I need to develop similar skill in google home device. Till now, I didn't get any good tutorials.
Is it possible to create & test Google Home app like Alexa skill?
The steps you go through to develop a Google Home action or app are very similar to creating an Alexa skill. There are a couple of differences, but logically they are the same.
If you use a NLP system such as Dialogflow (which is strongly suggested), you build the suggested phrases that the system responds to and the Intents they correspond to. You would specify your webhook as part of building these phrases. If you don't wish to use an NLP, you can specify the initial Intent phrases using the Actions SDK and specifying the configuration as part of a .json file. Other actions you'd do in the Alexa console are similar to what you'd do in the Assistant console.
You can deploy your Action on any public server that accepts HTTPS connections. This can include AWS Lambda with an AWS API Gateway trigger, or a Firebase Function, or a web server you more directly control that has a valid SSL certificate. This webhook would get a JSON body and needs to send back a valid JSON response. Google has libraries for node.js to help with this.
Google has a relatively full-featured simulator which you can use to test your Action. Once it is available in the simulator, it is also immediately available on every device attached to that account. You can permit other accounts to the project as well and, once they have activated it through the simulator, it is available on all their devices as well.
A full set of documentation is available at https://developers.google.com/actions/. It includes links to sample code, and you can find more step-by-step codelabs at https://codelabs.developers.google.com/?cat=Assistant
If you're familiar with how to develop skills for Alexa you might want to check out the jovo-framework. It makes it pretty easy to create skills that work for both Amazon Alexa and Google Home.
Here is a good starter template and walk-through that will get you going. https://github.com/rmtuckerphx/ask-cli-jovo-starter

Google Drive vs Google Doc for iOS?

I have an iOS app that uses the Google Docs List API to access and download spreadsheet data. I've done a basic test with upgrading my Google Docs account to Google Drive, and everything still seems to be working okay.
Based on the answer for this question Google Document List API and Google Drive SDK it looks like things will continue to work for awhile.
Are there any steps that mobile devs should be taking now to move to the new API? My main concern is that most of the developer docs so far are related to web apps and not mobile apps so requirements like registering for the chrome web store don't seem to fit. For example:
"Warning: Apps will not have any API access to files unless the app has been installed in Chrome Web Store. To test an app during development, you must first create a listing and install it."
Any guidance or suggestions would be appreciated.
Check this answer for the rationale behind the Chrome Web Store installation: https://stackoverflow.com/a/10476737/186674
Also, we are considering removing the installation requirement for the development and testing phase, we should have some updates soon.
iOS apps using the Documents List API should now update to using the Google Drive API and the newer Google APIs Client Library for Objective-C.
The new API and library are quite a bit easier to use and more efficient than are the older GData alternatives.