Issue integrating analytics plugin in Mobile First Application project - google-analytics

I have a problem...
I'm try to add this plugin: https://github.com/danwilson/google-analytics-plugin.
I'm develop an application with: AngularJS, Ionic and Mobile First Platform 7.1(MFP), in this version of MFP I must add the plugin manually.
iOS works fine.
My problem is Android:
Error: "The import com.google.android cannot be resolved".
I download Google Play Services with SDK but the problem continues...
Any idea to solve this problem?
Regards.

This other plugin https://github.com/appfeel/analytics-google uses gradle dependencies which should solve this problem.
Other option could be to remove google play dependency from the plugin you mentioned and manually modify gradle (actually I don't recommend this option as gradle gets generated automatically each time you remove/add the platform).
Other option is to modify the plugin itself (maybe a github fork). Here you can see what should it be modified: https://github.com/appfeel/analytics-google/pull/11/files

Related

what's the difference between firebase_messaging_web and firebase_messaging, which one should be used for crossplatform projects?

I have a flutter project and I want to integrate firebase push notification in it. I checked pub.dev and I found two official packages for firebase_messaging the default one and the web version. I'm planning to use same code-base for web, android and ios. In this case which package should I user?
you need to integrate just firebase_messaging plugin it also support web as well, whenever you reached package home page always check its support label which are mentioned on top kindly check attached screenshot of website for your reference.
enter image description here
and firebase_messaging_web only use for web so, you just need to integrate firebase_messaging not both.

Xamarin.Forms: Using open source code instead of the nuget package to debug

I am using this nuget package
https://github.com/jamesmontemagno/MediaPlugin
It is available for both ios and android in pcl.
I am using it to make videos in my app.
Unfortunately, it has issues on iOS that are inside the project, not inside my code.
I am therefore trying to debug the project, not just implement the nuget library.
It does work fine on Android, so all I want to change is the iOS part.
Unfortunately, I dont know how to insert the same library when it isnt a nuget package but just the solution and also how to then adress it from pcl code.
I havent found a solution on google, but probably I dont know how to describe the problem well enought.
How can I debug an open source nuget package?
Thank you
Download or clone the src code,
Go to your project in VS,
Right click on your solution, choose Add -> Existing project,
Navigate to MediaPlugin-master\src\Media.Plugin and choose Media.Plugin.csproj file,
Right click on your iOS project (or whatever project where you use the plugin), choose Add -> Reference,
Check Media.Plugin and click OK,
Now you should be able to use the plugin in your project code after adding using Plugin.Media; (and the code of the plugin will be available to you).

ionic 4 - SQLitePorter plugin is not installed

I followed this tutorial: https://devdactic.com/ionic-4-sqlite-queries/
I have a problem with the sqlitePorter plugin when I run this command on Visual Studio Code :
ionic serve --devapp
The application starts correctly on my mobile, but the following error suddenly appears in my console:
console.warn: Install the SQLitePorter plugin: ‘ionic cordova plugin add uk.co.workingedge.cordova.plugin.sqliteporter’
console.error: [plugin_not_installed error]
I do not really understand what happens because when I do “ionic cordova plugin ls”, the plugin is present.
Does anyone have an idea of ​​what might be going on, and how can I fix that?
Thank you in advance
Ionic DevApp only supports a selective set of native plugins of which this plugin is not one of them.
If you wish to use this plugin, you need to do a full native build app using Ionic/Cordova.
For More Info: https://github.com/dpa99c/cordova-sqlite-porter/issues/42

Get ERROR - Missing google_app_id, Firebase Analytics disabled

While using google analytics with flutter, Get
Missing google_app_id. Firebase Analytics disabled. See "https://goo
.gl/NAOOOI"
I tried many things but this issue is not gone. I used
"apply plugin: 'com.google.gms.google-services'"
in my android.build.gradle file also.
Edit:
The following instructions are no longer available as they have been replaced with https://firebase.google.com/docs/auth/flutter/start which use the flutterfire configure command to automatically add the needed dependencies.
build.gradle
app/build.gradle
Did you also add in the classpath and implementation parts as per the instructions?
My project was using older version of flutter admob plugin and google-services.json file. The new Admob plugin expects the admob_app_id key-value pair to be present in the json file.
I solved this issue by downloading the new google-services.json file and replacing the old one with the newly downloaded file.
I have just opened the analytics dashboard in the Firebase Console to make sure it is not disabled and found everything is okay, after that I stopped the app and made a fresh run and found that the error gone.

Google Tag Manager for iOS - Carthage

After taking a look to Google Tag Manager for iOS, it seems the only way to integrate it is by using CocoaPods.
https://developers.google.com/tag-manager/ios/v5
My company use Carthage, though. Would it be possible to use Carthage instead? Did any of you manage to do it?
Seems like installing it with CocoaPods is the only way to integrate it.
If you want other way, You can create a demo app and install Google Tag Manager in it using CocoaPods and then copy the framework file into your project. It worked for me.

Resources