Support for this awesome feature can be added very easily and of course there are limitations until Google adds native support for In-App Message in Unity. You could also use some direct links like myapp://message-clicked.example and catch that in Unity. You then just have to pass some parameters. Unity does support Firebase Dynamic Links so this notifies your app that the user pressed the popup. You can use Firebase Dynamic Links as action in the In-App Message. Check my post Unity native call reference to get some help with that.īut there is an easier way. This does not work out of the box since you would first have to add the native bindings in C#. Normally to do something in game when the user clicks on the In-App Message you would subscribe to some handlers described HERE. You HAVE to send the App into background and come to foreground to see test messages.This only works if you re-install the app on the device since it is cached a start On iOS you have to pass -FIRDebugEnabled in Xcode on start to test on device.Testįor up-to-date testing instructions check HERE If you now build to device everything should be setup and you can start testing. Installįor Android run the Google Play Resolver if it did not recognize the changes automatically by using Assets->Play Services Resolver->Android->Resolve. You can check the Release Notes to find more information. iOSįor the version (here 19.0.2) I could not find a clear version structure to guide along. To any of these files you can add the required dependencies. For example I have AnalyticsDependencies.xml and MessagingDependencies.xml. What I have done: In the Build Player Settings, I dragged and dropped my custom icon to the slots, see screenshot. Any ideas how I could get rid of that one In the iOS app, my custom app icon is applied, no problem on iOS. In the Unity project you should find “Dependency” Files under the path Assets/Firebase/Editor. After building my Android app, my custom app icon is not shown, there is still the standard Android icon. But we have a working m2 repository through the Google Play Resolver provided by Google. On Unity we don’t have these files directly. The instructions state that we have to add dependencies to the adle (Android) and the Podfile (iOS). You also have to add code to your game to initialize Firebase. Add to Unityīefore trying to add In-App Messaging to Unity please follow the instructions to install Firebase Analytics into Unity since this is a hard dependency of In-App Messaging. Please don’t confuse this feature with Cloud Messaging which is used for native push notifications. To get started, follow the Firebase instructions on adding Firebase to your Android project. But it can actually be used really easy already in Unity. For a full sample of using Firebase with the Braze Android SDK, see our Firebase push sample app. In-App Messaging is one of them and I think it is a great way to interact with your users without updating the app binary. I think they offer great products which help apps and games. In the last year I grew more and more attached to the Firebase service from Google. It works without much trouble but there are limitations. TL DR: In-App Messages can be added to Unity by using the Firebase Dependency Files.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |