Add Home option in AndroApp Menu

You can follow these simple steps to add home menu option

  1. Login to your wordpress admin dashboard
  2. go to Appearance->Menus
  3. Select your app menu (which you selected in AndroApp->Configure tab
  4. Expand Custom Links
  5. Enter Your website link* in the URL textboax (exactly as it is in AndroApp->Look & Feel section
  6. Enter Home in Link Text textbox
  7. drag the home menu option to top
  8. Save Menu
  9. And restart your app, you should see Home menu option in your app menu

Note: * if you are using single post/page for your homepage, you might want to put that single post/page link instead

Related Post

Webview (in app) OR External Browser

By default all of your website’s urls are opened in webview(i.e. in the app).
similarly,  all external urls are opened in external browser by default.

We have added a feature to override this behavior, it is available since app version 11.02 (only in android version as of now).

Regex tricks which can be helpful

  1. Open all external links in app

Enter .* in Regex to open external url in app textbox

  1. Open links from selected hosts in app

Enter https://puzzlersworld.com.*|https://shipmycard.com* in Regex to open external url in app textbox

above will open all the urls from https://puzzlersworld.com and https://shipmycard.com in app, you can add multiple hosts separated by pipes(|).

If you are wondering on how to test the regex, use this nice website to check if the urls matches the regex you want to use: http://www.regexplanet.com/advanced/java/index.html

for above example, we tested it by entering

we got this output for above input

you can see that it evaluates to true for 1,2 & 4, that means regexes matches for the url’s in 1,2 & 4 and these url’s will be opened in app.

  1. Open some link from your site in mobile browser

Lets say we have an app created for https://bestsmswishes.com website and we want to open this link https://bestsmswishes.com/there-is-no-better-friend-than-a-sister/ in external browser, instead of in the app itself.

i will enter https://bestsmswishes.com/there-is-no-better-friend-than-a-sister/ in Regex to open your website url in mobile browser textbox

  1. Open all of your websites pdf links in mobile browser

enter .pdf* in Regex to open your website url in mobile browser textbox

This is a great way to handle some of your links differently, we will recommend playing around with the regex tool to handle your cases , once again here is the link for your reference: http://www.regexplanet.com/advanced/java/index.html

 

 

Related Post

How to Install AndroApp Plugin

What is AndroApp Plugin

it is a wordpress plugin, to create an Android and IPhone App – without any programming language.

How to install?

you can install it on any wordpress website by following these simple steps

  1. Login to your wordpress dashboard and Plugins->Add New from the left sidebaradd_new_from_plugins-wordpress
  2. Search for AndroApp and click on Install Now buttoninstall-now-androapp-wordpress-plugin
  3. Click on Activate Plugin link in the next screenactivate-androapp-wordpress
  4. AndroApp plugin is installed on your site, now you can click on Settings link to configure it OR click AndroApp in the left sidebar on your wordress dashboardandroapp-settings-wordpress

Related Post

How to Add Shortcode in AndroApp Post Page

If you want to add any shortcode for posts on your androapp mobile app than you can do so by adding below code in your themes functions.php

add_filter( 'json_prepare_post','androapp_overwrite_content', 11, 3 );

function androapp_overwrite_content($data, $post_array, $context) {
	
     $textToBeAdded = do_shortcode("[related_post_shortcode]");
     $data['pwapp_post_content'] = $data['pwapp_post_content'].$textToBeAdded;
		
     return $data;
}

If you want to use post id or some other information you can use $post and $data objects, see below example to use post id
Continue reading “How to Add Shortcode in AndroApp Post Page”

Related Post

AndroApp Tricks to change post content

This guide is for little advanced users, who know little bit of php.

We will suggest to try out below changes on test setup and check it is not breaking your website or app.
It will change only the app content, your website content remains as it is.

To Add before the content of all posts

Add this code to functions.php

add_filter( 'json_prepare_post','androapp_overwrite_content_pre', 8, 3 );

function androapp_overwrite_content_pre($data, $post, $context) {
 if(!($data['type'] == "post" || $data['type'] == "page")){
 return $data;
 }
 $textToBeAdded = "add your html code here";
 $data['pwapp_post_content'] = $textToBeAdded.$data['pwapp_post_content'];
 return $data;
}

To Add after the post content

Add this code to functions.php
Continue reading “AndroApp Tricks to change post content”

Related Post

Ad guidelines for AndroApp

This is to help you setup ads on your app via AndroApp plugin

      1. Please create publishers account on Admob, Mopub and Appnext
      2. Fill Interstitial ad id for Appnext, Mopub and Admob, We give preference in this order mopub, appnext and than Admob. If you dont want to use any provider just leave the ad id blank.
      3. Enter Mopub or Admob Bottom Ad unit in bottom/top/listView ad unit ids.
      4. To honor the Admob guidelines, we suggest to keep only bottom ad unit or top and listview ad unit(depending on the content on your page). We suggest to honor one ad on a screen at a time strictly as we have seen in past, google rejected few of our clients admob accounts.
      5. AppNext Intersitial ads will not work on woocommerce enabled sites, we disabled it due to some technical issue.

Mopub Setup Guidelines

  1. Create an account on Mopub.
  2. Create a new app by clicking on Add a New App button on top right.
  3. Go to App and than create a new Ad unit by clicking Add a Ad Unit button on top right. fill this ad unit id in AndroApp Account Settings Tab
  4. Go to networks tab and Add a new network by clicking Add Network button on top right
  5. Select ad network of your choice, like Admob, StartApp for facebook audience network etc.
  6. Fill in the required information in Set Up Your Inventory section
  7. Go to Segments tab from top
  8. Click on Global Segments
  9. Clear the filters by clicking on Clear All link
  10. under your Ad, disable enable by selecting the network and clicking on play/pause buttons in Segment Waterfall section
  11. set a ECPM for example $0.05
  12. you can add multiple ad networks for one mopub ad unit and those ad networks will fight with each other for a place in your app.

Related Post

Hide Elements on Post Page

Hide some elements on Post Page

These options are valid only when Post Content type is set as post processed.
Screen Shot 2015-12-19 at 9.43.05 AM
To hide some content in your post page you can put below css in the define custom css here for post processed content type (see screenshot above)

Hide Featured Image
.androappfimage{
display:none;
}
Continue reading “Hide Elements on Post Page”

Related Post

AndroApp – Create Google Analytics Property

Google Analytics tracking ID identifies the analytics property for which mobile tracking is enabled. Follow the below steps to get your property tracking ID.

1. Sign in to your Google Analytics account.

2. Select the Admin tab.

3. In the ACCOUNT dropdown, click on Create new account. (or select if you already have an account for your website)
Continue reading “AndroApp – Create Google Analytics Property”

Related Post

9 Steps guide to Setup Google Cloud Messaging Project

This guide will help you setup google api project for enabling push notification on your android app (created through androapp wordpress plugin).

Log in to https://code.google.com/apis/console

gcm setup

Continue reading “9 Steps guide to Setup Google Cloud Messaging Project”

Related Post