Defold 1.2.67 has been released

This release has two new features related to Android push notifications along with bug fixes for both the engine and editor.

There are now game.project settings to set a custom small and/or large push notification icon on Android. The icons will automatically be used for both local or remote push notifications. If not set the application icon will be used by default.

Two additional settings has also been added to specify which JSON fields to use as notification title and text for remote pushes on Android. By leaving them empty the “alert” field is used for text (just as on iOS) and the application name as title.

New features

  • Custom push notification icons for Android
  • Ability to specify payload field to use as push title and text on Android

Bug fixes

  • Text outlines now use inherited alpha
  • GUI Templates Nodes Hiearchy was reversed when imported into a scene
  • Fixed GUI templates in layers overloading issues
  • Facebook game request suggestions field was ignored
  • Remote pushes was not handled correctly if the app was closed
  • Editor crashed on GUIs with invalid font-paths
  • System info system_name was updated to report correctly on iOS 9.1

ENJOY!

4 Likes

Please Note: The AndroidManifest.xml has some changes in regards to specifying which JSON fields to be used for push notification data. If you are using a custom manifest file make sure to update it to have these changes as well!

The following lines need to be added inside the com.dynamo.android.DefoldActivity entry:

        {{#android.push_field_title}}
        <meta-data
            android:name="com.defold.push.field_title"
            android:value="{{android.push_field_title}}" />
        {{/android.push_field_title}}
        {{#android.push_field_text}}
        <meta-data
            android:name="com.defold.push.field_text"
            android:value="{{android.push_field_text}}" />
        {{/android.push_field_text}}

Or, just bundle your project once for Android without specifying your own manifest and you will get the default manifest to compare against.

Again, this is only relevant if you currently are using your own AndroidManifest.xml! :relaxed:

3 Likes