In the official Firebase Integration Guide (Android) and Firebase Integration Guide (iOS), they have provided individual integration guidelines.
Could you please tell me an ionic way I can integrate Firebase Analytics into ionic apps?
I need to do this as AdMob made the Firebase Analytics as its recommendation analytics solution for mobile apps.
Thank you in advance.
Worth keeping any eye on this thread:
https://groups.google.com/forum/#!topic/firebase-talk/MKfIzAtNNuA
In the meantime, an Ionic Native plugin on top of the Cordova plugin cordova-plugin-firebase-analytics has been released: https://ionicframework.com/docs/native/firebase-analytics/
It's still in beta, but I had no problems with it so far (except for a conflict with phonegap-plugin-push).
The integration is very straight forward:
import { FirebaseAnalytics } from '#ionic-native/firebase-analytics';
constructor(private firebaseAnalytics: FirebaseAnalytics) { ... }
To track an event just call logEvent:
this.firebaseAnalytics.logEvent('page_view', {page: "dashboard"})
.then((res: any) => console.log(res))
.catch((error: any) => console.error(error));
Looks like someone created a repository for Firebase in Cordova, you should be able to use that. It says that it will give you at least push notifications, analytics, event tracking, crash reporting.
Related
I've build an app using Ionic 5 (Angular) and Capacitor. I'm using the Capacitor plugin for Push Notifications. All is working fine on both iOS and Android. However on Huawai phones (P30 and later) things don't work properly.
No device id is obtained and Push Notifications don't work, even the PushNotifications.addListener('registration', async (token: PushNotificationToken) => {}) is not triggered.
Any ideas on what I need to do so that I can maintain one codebase and make it work on both Android "worlds" (Google & Huawei) ?
Thanks in advance,
Chris
Probably the Ionic plug-ins you used are provided for GMS and Firebase so that their capabilities can be directly called in Ionic. Therefore, apps developed by Ionic must directly call HMS capabilities when Google Play services are unavailable.
You are advised to use HMS Ionic plugin to integrate HMS Push Kit in Ionic App. You can get the Push Plugin from here. Please use 5.0.0 version.
Or you can get it from npmjs here.
Update:
If you look for a way which allows you to use both push notifications in the same application by detecting the device type and acting accordingly, you can use G+H solution. Using the G+H approach, you are able to maintain one codebase and decide whether to use GMS or HMS based on the availability of either one.
From: https://stackoverflow.com/a/63337530/13329100
I've found a lot of guidelines on how to integrate HMS in my apps. But majority of them are different or using android studio. May I know which one is the latest guidelines to integrate HMS in my apps for Unity.
Also, I want to enable In-App-Purchase (subscription) for my apps as well.
Thanks in advance.
UPDATED
Currently I'm trying to implement In-App-Purchase for huawei. Huawei tech said that users need to signIn first before they can use IAP. But I received this error while testing signIn
How to obtain product info ? here
AFAIK you have two main options:
UDP SDK from Unity, which is the Unity official solution to HMS in Unity. However has been under maintenance for some days now.
Unity HMS Plugin from EvilMinds, an open source alternative that is already functional and includes supports to more HMS kits. Looks pretty promising for the future.
In any case you can still manually access HMS Android SDK directly using Unity SDK Android API.
Unity provides the HMS Plugin here: Unity Asset Store > Huawei HMS Core App Services
The README file contains information about development guides, API references. For more technical questions, please submit a ticket with Unity Customer Service.
Currently Unity does not support the In-App-Purchase (subscription) function. It will be planned in the future.
Update:
For the IAP error:
It is a null pointer. Please check for unassigned objects. If you cannot find anything, please delete project and install again cause sometimes these kind of things happening.
So I am trying to integrate activity feed feature from get stream into flutter. But I am not able to get the docs for that. My question is, is it possible to integrate feed feature to flutter app ?
There are various tutorials for integrating chat feature but not the feed feature. Please help.
Note: I am not an experienced flutter developer...
Unfortunately, no Flutter SDK or customized docs for Flutter at the moment but we're considering to allocate some resources for it in Q3 this year.
I highly suggest you to use Flutter platform channels. I had to do that for a project I am working on currently. If you have any questions feel free to ask :)
There is a dedicated Dart package to interact with the API: https://pub.dev/packages/stream_feed
And a core package that simplifies the low-level client by managing state and providing builders: https://pub.dev/packages/stream_feed_flutter_core
Tutorial: https://getstream.io/activity-feeds/sdk/flutter/tutorial/
I am currently developing a mobile application using the ionic framework. We recently decided to begin integrating social logins into the application. Soon after adding google oauth, a notification indicating a deprecation of oauth requested through webviews in 2016/17 began appearing. After researching the error I found the following article. From my understanding cordova is run entirely using web views.
Does this mean authentication via oauth in an Ionic / Cordova app will now be impossible for both Android and iOS? I have been researching for an entire day trying to find a work around ( Getting a call back from the system browser to my ionic application ) to no avail.
Does anyone have any experience or similar concerns who could share their experience with this news?
Thanks all
Some explanations from the Ionic team :
http://blog.ionic.io/google-oauth-changes/
Looks like the ionic team has pulled down this article: http://blog.ionic.io/google-oauth-changes/
Hopefully it will be back up soon.
For now, refer to this plugin, which I am almost positive was the recommendation:
https://github.com/EddyVerbruggen/cordova-plugin-googleplus
I am struggling a little bit while trying to implement firebase in unity, firebase do not yet provide a unity sdk and I was considering these options:
1) create native plugins for iOS and Android that wraps the firebase sdk and methods that I need
2) use IKVM to create a dll from the firebase .jar, I know someone has done it but I have not read yet about a 100% working method
3) build everything from scratch on top of the firebase REST api
what do you advice? have you got some experience with the topic, someone out there has made firebase work with unity?? :D
thanks
Firebase has officially Unity supported now.
https://firebase.google.com/docs/unity/setup
Import FirebaseAnalytics.unitypackage(Download From Firebase Website Or direct link https://dl.google.com/firebase/sdk/unity/firebase_unity_sdk_1.0.0.zip)
You can look this beta tool, with this u can build for Android and IOS from Unity.
Each Plugin have firebase fun.
https://github.com/unity-plugins/Firebase-Admob-Unity
Google Firebase Unity Admob Plugin
Google Firebase Unity Admob Plugin provides a way to integrate firebase admob ads in Unity3D Game and u3d app. You can use it for Unity iOS and Android App with the same c# or js code.It support all native firebase admob features such as Native Express Ad
Google Firebase Unity Admob Plugin Features
Platforms supported in one plugin :
Android, Based Admob SDK v9.0 (part of Google Firebase service)
iOS, via SDK v7.8.0
Support all native events
AdRequest targeting methods,such as children target,test mode
Not need change Android package name
Very simple API
Based on FireBase SDK Version
Ad Types:
Banner(All Banner Type and Custom banner sizes)
Interstitial (text, picture, video)
Rewarded Video
Native Express Ad
https://github.com/unity-plugins/google-service-unity
Google Service Unity Plugin
Google Service Unity Plugin is a Unity Plugin For Google Service.Include Google Admob Unity,Firebase Analytic Unity,Google Game API Unity. Login,Achievement,Leaderboard,Event,Quest,Snapshot,RealTimePlayGame,TurnbasedPlayGame API are supported and easy to use with c# or js.
Currently it's very easy to add Firebase to your Unity project as long as you follow specific prerequisites. If you're building for Android or iOS then you're good to go, but the same doesn't happen if you're building for WebGL.
According to the documentation, it can be done following the next steps
Create a Firebase project
Register your app with Firebase
Add Firebase configuration files
Add Firebase Unity SDKs