How to find Google-Services File for Existing Project

Now you will need to add the content of the file in Account Settings tab for push notification to work via AndroApp WordPress Plugin.

Follow these steps to download the file.

  1. Go to https://console.firebase.google.com/
  2. Select the project for the website.
  3. Click on the android app OR the left box with number of box.
  4. Click on the settings icon for the android app for the website.
  5. Scroll down and you will see the option to download the google-services.json file, click on the down arrow to download the file
  6. This file content will look something like this
  7. Open the file and copy paste the content in text box in Account Setting tab

Related Post

Supporting Latest Admob SDK

We recently updated Admob SDK, which also need admob application ID, thus you will have to update this in AndroApp->Account Settings tab and create a new apk from AndroApp->Look & Feel section.

Follow these steps to update application id

  1. Go to https://support.google.com/admob/answer/7356431
  2. Find the application id by following the instructions in above link.
  3. Login to your wordpress admin dashboard and go to AndroApp->Account Settings tab
  4. update your application id here and click Save.
  5. Go to Look & Feel tab
  6. Generate new apk.
  7. Test if Admob ads are showing on this apk (ensure that you enter correct ad ids in Account & Settings tab).
  8. Publish this new apk to Google Play Store.

Please do note there are other reasons for ads not being shown i.e. no inventory, new account, payment section not completed etc.

  1. You should ensure that you fill payment info in your Google Admob account
  2. Test Ads after 24 hours of creating new app/Ad.
  3. Test with test ads https://developers.google.com/admob/android/test-ads
  4. Ensure that your entered admob application id in Account Settings tab and you are on app version 22.00.

 

 

Related Post

Adding support for Firebase Http v1 Apis for Push Notification

Push notifications were not working for the new firebase accounts because new firebase projects only supports http v1 apis while we were using v0 apis in androapp.

We added the support for http v1 api recently in 21.00 version of androapp plugin. You don’t need to do anything if push notification is working fine for you already except to ensure that v0 is selected in Firebase Api Settings section on AndroApp->Account Settings tab.

Otherwise follow this guide to use firebase http v1 api.

Related Post

How to Download Firebase Service Account Key

This key is needed to authorize sending push notifications from your server to your app users, this key is needed for http v1 firebase apis.

Follow these steps to get the key for your account.

  1. Go to https://console.firebase.google.com
  2. Select the project for which you want to create the key
  3. Select the settings icon for the android app (most probably you might just have one app).
  4. Click on Service Accounts tab and click on Generate new private key to download the new key.
  5. keep this file safe in your server.
  6. Download this file to your server and update the file path in textbox in Firebase Api Settings section on AndroApp->Account Settings tab on your wordpress admin dashboard.
  7. you might need to enable Firebase Cloud Messaging api from  https://console.developers.google.com/apis/api/fcm.googleapis.com/overview?project={project_number}
  8. replace {project_number} from Google Api you extracted earlier, i.e. 370901340170 from 1:370901340170:android:ce70542cdae49cac
  9. Create a new APK and test the push notifications, go here for troubleshooting push notification.

Related Post

Android App Bundle

Google is going to allow only Android App Bundles from August 2021, we have added the Android App bundle support now, you will see two links in our emails.

  1. One is .apk link – use this to install apk file to your mobile to test before you publish your app to play store, to verify if everything is working fine.
  2. Second is .aab link, use this to upload to play store.

If you use .apk file instead of .aab to upload, we might not be able to provide support once Google mandates .aab files only.

Steps to upload .aab file to playstore.

  1. Go to Google play developer console and click on Production (on left sidebar)
  2. Click on Create New Release button on top right
  3. Click Continue where it says “Google is protecting your app signing key”
  4. Upload your .aab file.

Related Post

Create firebase web app

  1. Go to https://console.firebase.google.com/
  2. Select the existing project which you might have created during android app setup by following these steps
  3. Click on Add App
  4. Select the Web App
  5. Give you web app a name – for your reference
  6. And click on Register App button
  7. Copy the script code in the next step (just the selected one in below snapshot)
  8. And paste it to Firebase Config box in Web Push Notifications -> Account Settings tab

Related Post

Push Notification Support for Custom Post Types

We have recently launched Push Notification support for custom post types in our AndroApp WordPress Plugin.

What is Custom Post Type?

Before we tell more about our changes let us see what are custom post types?

Let’s say you have a quotes website than you can create a custom post type quote,  similar to post OR page. This will help you with SEO with quote in every url OR you might want to create different post types to segregate the Posts for various reasons.

You can use this custom post type UI plugin to create a new custom post type, once you do that you will get the option to add new posts for that custom post type in wordpress admin panel.

For example, i created quotes as custom post type and i see this in my admin panel

AndroApp Settings

When you upgrade AndroApp plugin to 19.01 or more, you shall also see push notifications for custom post types, head over to AndroApp->Account Settings tab to manage this behavior.

You can select the post types for which you don’t want to send push notifications

Related Post

Why we stopped IOS App Support

  1. Apple Store charges $100 per year. which is not economical for most of our clients.
  2. It is very difficult to test IOS apps, you can’t install directly with a link, thus we can’t share the app before our client go through various complex steps to give us the required files to generate their app.
  3. We could not automate IOS build process due to various complex steps and it requires lot of manual efforts to generate IOS build.
  4. Apple does frequent releases (for xcode, swift) which are not backward compatible, making it difficult for us.
  5. Rejection rate: Apple rejected around 20-30% of the apps, which is not good for our clients, after all the hard work they put in following the complex statements.

With dropping IOS support, we want to increase our focus on Android and we just released few important features with 18.00 version.

** If you already created IOS app, that should continue to work without any issues, but you will not receive any new updates on IOS from us.

Related Post

Push Notifications are not working on IOS

This is to troubleshoot if push notifications are not working on IOS while they are working fine on Android.

Checkout this link first for push notifications are not working on Android app.


believing that your push notifications are working on Android, please check following to ensure they work for IOS

  1. Create auth keys(.p8 files) for push notification https://androapp.mobi/blog/create-apn-auth-keys-ios-push-notification/396 and upload them to your firebase project https://androapp.mobi/blog/upload-apn-auth-keys-firebase-project/402
  2. Check the bundle id used while creating app id and package name while creating firebase app for IOS
    1. if it is not the same, you need to create new firebase app with the bundle id used for app, update it in the account & settings tab, trigger an Android build (so that we get the new id at our server)
    2. send an email to us mentioning that you have changed firebase app id and would like to get the new app for the same.

Related Post

How to Resolve: Violation of Usage of Android Advertising ID policy Issue

Issue: Violation of Usage of Android Advertising ID policy and section 4.8 of the Developer Distribution Agreement

Google Play requires developers to provide a valid privacy policy when the app requests or handles sensitive user or device information. We’ve identified that your app collects and transmits the Android advertising identifier, which is subject to a privacy policy requirement. If your app collects the Android advertising ID, you must provide a valid privacy policy in both the designated field in the Play Console, and from within the app.

Even if you don’t use Advertising ID yourself and just use admob libraries, these libraries use this Advertising ID internally to show targeted Ads to your users.

If your app is removed for this reason, you can add a privacy policy to your play store listing, you can use this link to generate privacy policy: https://app-privacy-policy-generator.firebaseapp.com/ (please do consult your legal consultant as well).

You can follow these steps to generate the privacy policy

  1. open the link https://app-privacy-policy-generator.firebaseapp.com/
  2. Enter details as below, replace PuzzlersWorld with your App Name
  3. Select Admob and Firebase Analytics on the right
  4. Click on Generate button
  5. Copy the text and create a page in your website

Update Privacy Policy link to Play store account

  1. Once you have your privacy policy link
  2. Login to google play developer console: https://play.google.com/apps/publish/
  3. Select the App with issue
  4. Go to Store Presence -> Store listing and scroll to the bottom
  5. uncheck not submitting privacy policy at current time and enter your privacy policy link 
  6. And click on Resubmit App button
  7. Please wait for 48 hours for Google to process the update

 

Related Post