WP for Android Script and Notifications

I've created a script that does all of the customizations, build, keystore, jarsign, zipalign, and compile in just under a couple minutes. But going through the various files and settings, I noticed there's no setting display within the app for Notifications control. I see the file in the build project, but I'm assuming that the bond or display value isn't set correctly. Is there a fix you're aware of?
Also, I've created a front end submission type to run the script from the uploaded files, but I'm trying to figure out a validation process to show that the plugin was purchased, or even an option for users to do a direct purchase through the order process. Any ideas on the best way to accomplish that?
Thanks

  • Jack Kitterhing

    Hi there @Sean,

    Hope you're well today!

    Thanks for your patience on this, for the push notifications? Do you have the line number your referring to on that, I'd be happy to check that for you.

    For licensing and verifying the purchase if your selling this through a site directly, you could use easy digital downloads https://easydigitaldownloads.com/ with it's licensing add-on https://easydigitaldownloads.com/extensions/software-licensing/

    That should work for you here.

    Thanks!

    Kind Regards
    Jack.

  • Sean

    For the licensing I was actually referring to a way to verify that the WP Android app was purchased from WPMUDEV before they can use it to do the build on my site. Unless my membership allows me to offer these build services with my own copy.

    For the notifications, in the edublogs app if you go to settings, then select a blog to go into the blog settings theres a section for notifications (ringtone, frequency, enable, disable, icon, etc). This doesn't appear in the settings menu for WP Android. I did find these references =

    ------------------------------------------------------------------------------------------------

    Contained in: workspaceEdublogs/wp-android/res/xml/preferences.xml

    <PreferenceCategory
    android:title="@string/notifications"
    android:key="wp_pref_notifications_category" >
    <PreferenceScreen
    android:key="wp_pref_notifications"
    android:persistent="true"
    android:title="@string/manage_notifications">
    <CheckBoxPreference
    android:defaultValue="true"
    android:key="wp_pref_notifications_enabled"
    android:title="@string/enable_notifications" />
    <PreferenceCategory
    android:title="@string/types"
    android:key="wp_pref_notification_types" >
    </PreferenceCategory>
    <PreferenceCategory
    android:title="@string/blogs"
    android:key="wp_pref_notification_blogs" >
    </PreferenceCategory>
    <PreferenceCategory
    android:title="@string/options" >
    <CheckBoxPreference
    android:defaultValue="false"
    android:key="wp_pref_notification_sound"
    android:title="@string/notification_sound" />
    <CheckBoxPreference
    android:defaultValue="false"
    android:key="wp_pref_notification_vibrate"
    android:title="@string/notification_vibrate" />
    <CheckBoxPreference
    android:defaultValue="false"
    android:key="wp_pref_notification_light"
    android:title="@string/notification_blink" />
    android:key="wp_pref_notifications_enabled"
    android:title="@string/enable_notifications" />
    <PreferenceCategory
    android:title="@string/types"
    android:key="wp_pref_notification_types" >
    </PreferenceCategory>
    <PreferenceCategory
    android:title="@string/blogs"
    android:key="wp_pref_notification_blogs" >
    </PreferenceCategory>
    <PreferenceCategory
    android:title="@string/options" >
    <CheckBoxPreference
    android:defaultValue="false"
    android:key="wp_pref_notification_sound"
    android:title="@string/notification_sound" />
    <CheckBoxPreference
    android:defaultValue="false"
    android:key="wp_pref_notification_vibrate"
    android:title="@string/notification_vibrate" />
    <CheckBoxPreference
    android:defaultValue="false"
    android:key="wp_pref_notification_light"
    android:title="@string/notification_blink" />
    </PreferenceCategory>
    </PreferenceScreen>
    </PreferenceCategory>

    --------------------------------------------------------------------------------

    Contained in: workspaceEdublogs/wp-android/res/menu/notifications.xml

    <?xml version="1.0" encoding="utf-8"?>
    <menu xmlns:android="http://schemas.android.com/apk/res/android" >
    <item
    android:id="@+id/menu_refresh"
    android:icon="@drawable/ab_icon_refresh"
    android:showAsAction="always"
    android:title="@string/refresh"/>
    <item
    android:id="@+id/menu_settings"
    android:icon="@android:drawable/ic_menu_preferences"
    android:showAsAction="never"
    android:title="@string/settings"/>
    <item
    android:id="@+id/menu_signout"
    android:icon="@android:drawable/ic_menu_close_clear_cancel"
    android:showAsAction="never"
    android:title="@string/sign_out"/>
    </menu>

    ----------------------------------------------------------------------------

    I can try adding the following when I get a chance and see if it displays correctly
    <item
    android:id="@+id/menu_notifications"
    android:icon="@android:drawable/ic_menu_preferences"
    android:showAsAction="never"
    android:title="@string/settings"/>

  • Jack Kitterhing

    Hi there @Sean,

    Hope you're well today and thanks for the additional information.

    For the licensing I was actually referring to a way to verify that the WP Android app was purchased from WPMUDEV before they can use it to do the build on my site. Unless my membership allows me to offer these build services with my own copy.

    Currently not, there's not a way to verify they purchased it from us, though it is a interesting idea, your purchase allows you to use the app for an unlimited amount of clients, but you aren't allowed to directly re-distribute, but basically you could use it in your own builder with a custom license checker, yes.

    Those references shouldn't actually be there, thanks for finding those! We'll get those removed in the next version.

    Thank you!

    Kind Regards
    Jack.

  • Sean

    I got the script working. Does an automated customize, build, sign, zipalign, and compile in about 2.22 minutes. I set one up for single site and one for multi-site. You can check it out at https://planetxmobile.com
    If you're interested I'll toss you a private link to run through the build and try it out. Still working on incorporating different color and font schemes, but gotten pretty far.
    I did manage to get the values to appear for managing the notification sounds, lights, and vibration from directly within the app settings, but couldn't get them to stay persistent....so that's still a work in progress.
    I'll let you know once I figure it out and upload the modified file(s)