Popular questions for this item

WordApp configuration

Open www/js folder and edit config.js file

Replace <WORDPRESS_API_URL> with your Wordpress Blog url, leave /wp-json/wp/v2/ at the end
.constant('WORDPRESS_API_URL', 'http://<WORDPRESS_API_URL>/wp-json/wp/v2/')
Replace with your Google Project Number How to generate Notification key look here https://documentation.onesignal.com/v2.0/docs/android-generating-a-gcm-push-notification-key
.constant('GOOGLE_PROJECT_NUMBER', '<GOOGLE_PROJECT_NUMBER>')
Replace with your OneSignal AppId https://documentation.onesignal.com/docs/phonegap-sdk-installation#2-add-required-code
.constant('ONESIGNAL_APP_ID', '<ONESIGNAL_APP_ID>')
Change color your Ionic application to light, stable, positive, calm, balanced, energized, assertive, royal or dark
.constant('IONIC_APP_COLOR', 'positive')
Change Posts page template to cards, cards2, list
.constant('POSTS_TEMPLATE', 'cards')
Replace <ANDROID_PACKAGE_NAME> with your Android package name and IOS app ID
.constant('ANDROID_PACKAGE_NAME', '<ANDROID_PACKAGE_NAME>')
.constant('IOS_APP_ID', '<my_app_id>')
Replace app@myapp.com with your Primary Email to send Feedback
.constant('PRIMARY_EMAIL', 'app@myapp.com')
Replace app2@myapp.com with email to send copy Feedback or leave empty
.constant('COPY_EMAIL', 'app2@myapp.com')
Replace <SMS_PHONE_NUMBER> with phone number for send SMS
.constant('SMS_PHONE_NUMBER', '<SMS_PHONE_NUMBER>');

How to change splash screen and app icon

Go to www/res folder and replace to you own png files

How to change app name, app version and app id

Go to www folder, open config.xml file and make changes in this line, change id, app version.
<widget id="com.ionicframework.wordapp" version="1.0.0" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0">
In this line change your app name
<name>WordApp</name>
In this line change your app description
<description>WordApp Ionic Framework and Cordova project.</description>
In this line change your app author data
 <author email="you@example.com" href="http://example.com.com/">Your Name Here</author>

How to remove SMS feature from App

Easy way, just open www/templates edit settings.html. Find and remove this lines of code:
        <div class="item option" ng-click="sendSMS()">
         <span class="title">Send SMS</span>
        </div>    

Hard way, open www/templates edit settings.html.

1. Find and remove this lines of code:

        <div class="item option" ng-click="sendSMS()">
         <span class="title">Send SMS</span>
        </div>    
2. Open www/templates/modal folder and delete sendsms.html
3. Open www/js/ folder and edit controllers.js - Find SmsCtrl code lines and remove them
.controller('SmsCtrl', function($scope, $ionicPopup, SMS_PHONE_NUMBER) {
.... here is controller code
})

- Find this code lines in SettingsCtrl and remove

 // Send SMS
 $ionicModal.fromTemplateUrl('templates/modal/sendsms.html', {
  scope: $scope,
  animation: 'slide-in-up'
 }).then(function(modal) {
  $scope.sms_modal = modal;
 });

 $scope.sendSMS = function() {
  $scope.sms_modal.show();
 };

4. Last step, open www folder and edit config.xml, find and remove this plugin

  <plugin name="com.cordova.plugins.sms" source="pgb" spec="0.1.2" />

Where replace AdMob ID

Go to www/js folder and open app.js to edit, replace id for different platforms in banner lines:
if (/(android)/i.test(navigator.userAgent)) {
    admobid = { // for Android
        banner: 'ca-app-pub-0000000000000000/0000000000' // Replace with your Android AdMob ID
    };
} else if (/(ipod|iphone|ipad)/i.test(navigator.userAgent)) {
    admobid = { // for iOS
        banner: 'ca-app-pub-0000000000000000/0000000000' // Replace with your iOS AdMob ID
    };
} else {
    admobid = { // for Windows Phone
        banner: 'ca-app-pub-0000000000000000/0000000000'// Replace with your WP AdMob ID
    };
}

If you want to build an application on only one platform, change ID in the corresponding line, leave the rest unchanged.

Is required to install OneSignal plugins?

No, if you not planning send Push Notifications directly from WordPress dashboard and have plans send Notifications only from OneSignal dashboard you can not install OneSignal plugins to your WordPress blog.

Why I sometime not receive Push Notification?

By default notifications will not be shown when the user is in your app. But if you want set to true open app.js, and add this line
window.plugins.OneSignal.enableNotificationsWhenActive(true); 
after
window.plugins.OneSignal.init(ONESIGNAL_APP_ID,
{googleProjectNumber: GOOGLE_PROJECT_NUMBER},
notificationOpenedCallback);

Can we reduce the characters validation in feedback and comments to e.g. 3 characters?

Of course, open www/templates/modal folder and edit comment.html. In code find ng-minlength=”5” change 5 as you want. You can change this in sendfeedback.html

Show more

by
by
by
by
by
by