Skip to main content

Posts

How to Implement Firebase In-App-Messaging in Android

 Hello everyone , hope you are doing well ! In this blog we will learn how to implement Firebase In-App-Messaging. Before starting let me clarify about what is In-App-Messaging. Firebase In-App Messaging helps you engage your app's active users by sending them targeted, contextual messages that encourage them to use key app features. For example, you could send an in-app message to get users to subscribe, watch a video, complete a level, or buy an item. You can customize messages as cards, banners, modals, or images, and set up triggers so that they appear exactly when they'd benefit your users most. ~ From official Document In general way we can say that it is an app engagement tool that helps your users to connect with you app. Lets see how its looks like : It will show in you app when user open your app it is similar like any alert dialog box. The benefit of using Firebase In-App-Messaging is you can control your content and messages dynamically from your firebase console. S
Recent posts

Manifest Merger Failed Apps Targeting Android 12

Hello Everyone ! Hope you are doing well .Recently Google Play Store accepting new apps only with target SDK API level 31 . As per Google Policy : "New apps must target Android 12 (API level 31) or higher; except for Wear OS apps, which must target Android 11 (API level 30) or higher. Starting in November 2022, app updates must target API level 31 or above and adjust for behavioral changes in Android 12; except for Wear OS apps, which must target API level 30 or higher." Now come to the challenging part when you try to upgrade your current API level to 31 you may face some issues like "Manifest Merger failed apps targeting Android 12". Now come to the solution part : Google recently introduce a new tag for every activity you created on your AndroidManifest.xml file which is "android:exported" what is android:exported ? In simple words android:exported is nothing but a tag introduce for security purpose in Android 12 and latest smartphones.you have to pass

Auto read OTP using SMS User Consent API in Android

Some times ago Google Play restricts the use of high risk or sensitive permissions, including the SMS or Call Log permission groups. It means you have to justify why you are taking SMS or other high risk or sensitive permissions for your application .For this you may be required to complete the Permissions Declaration Form and receive approval from Google Play. Before this every app even who does not have any purpose for taking SMS or other high sensitive permissions in their app ,They was taking these permissions from users and this is a kind of security beach.  For solution of this problem Google introduce SMS User Consent API . The SMS User Consent API complements the SMS Retriever API by allowing an app to prompt the user to grant access to the content of a single SMS message. When a user gives consent, the app will then have access to the entire message body to automatically complete SMS verification. If your appeal for SMS permission is rejected by Google team you can use SMS Us

Working with Android 11 (Changes and Security Features)

 Hello everyone , I am here with new article which is hot topic nowadays "Android 11" .The stable version of Android.  Android 11 is the eleventh major release and 18th version of Android, the mobile operating system developed by the Open Handset Alliance led by Google. It was released on September 8, 2020.It is comes with many security features and other features as well . And it is now compulsory in play store  to upload new apps with API lavel 30 which is compatible with Android 11 and from November onwards old apps also have to update with API 30 .Some other guidelines you can check out from here . Play Store Guidelines So its clear that we have to update our apps with API level 30 .But Android 11 comes with some changes as well which we have to do in our projects. For example from Android developer site "Android 11 (API level 30) further enhances the platform, giving better protection to app and user data on external storage. ". Scoped storage enforcement: Apps

Speak Out FCM Notification using Text to Speech (TTS)

Hello everyone! hope you are doing well .Here is another article on Speak out the notification received from Firebase .Basically we will use Text to Speech Service to achieve this. Before going further lets discuss something about FCM behavior. There are two types of messages in FCM (Firebase Cloud Messaging): Display Messages : These messages trigger the onMessageReceived() callback only when your app is in foreground. Data Messages : Theses messages trigger the onMessageReceived() callback even if your app is in foreground/background/killed. So we can say that we will not receive data messages from Firebase console when app is in background or killed. To solve this problem we have to send FCM notification using our Server or we can also use Postman for sending notification as a Server. Here are some steps to follow for send notification using Postman. Copy Legacy Server Key from Firebase Console > Project Settings > Cloud Messaging  In Postman Select POST. Enter request URL as