Our documentation is changing, please click here to enjoy it!

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

 

Accengage custom fixed sidebar

accengage-space-versions
NameVersions

Page Tree
rootLatest version - 6.4.x

Info
titleHave a splashcreen in your app ?

Allowing a content to be displayed in your splashcreen can affect the push behaviour.

For this reason, a method exists to prevent the display of any Accengage content once the splashcreen is loading. Please check this page for more information.


3.1 Customize the SDK default launching configuration

Include Page
3.1 Customize the SDK default launching configuration
3.1 Customize the SDK default launching configuration

Handling (A RENOMMER !)

3.2 Handling push delegate callbacks manually

Include Page
WIP-HandlingWIP-Handling

Custom notification sounds

You can specify a custom sound, that iOS will play when it receives a local or remote notification for your app. For more details, you can consult Apple's documentation.

Remember that the default sound is played when:

  • The sound file is not found.
  • The sound is longer than 30 seconds.
  • The data format is invalid. Accepted data formats are: aiff, wav, or caf.

To add the sound file to your project, you can simply drag and drop it to your resource folder. Make sure you check the box Copy items if needed.

In the Accengage dashboard, you can easily specify this sound when composing a push message by selecting "custom" in the sound section, and enter the file name with its extension (customsound.wav for instance).

Info

Note

Prefer a short file name.

Configure interactive notifications

Preventing notification display

Sometimes, it might be useful to prevent displaying push notifications, for various reasons : avoid displaying push notifications on top of ads, respecting user preferences etc...

Accengage provides you an option, but don't forget to deactivate it if need be!

You can prevent the display of any push notification by suspending the Push service :

Deck of Cards
idAdvanced_Push_1
startHiddenfalse
Card
idobj-c
defaulttrue
labelObjective-C
Code Block
themeMidnight
languagecpp
[Accengage push].suspended = YES;
Card
idswift
labelSwift
Code Block
themeMidnight
languageswift
Accengage.push().suspended = true
Info

Note

This will not affect In-App messages.

Carousel template

SILENT PUSH ( ? )

3.2 Handling push delegate callbacks manually
3.2 Handling push delegate callbacks manually

3.3 Carousel Template

Include Page
3.3 Carousel template
3.3 Carousel template

3.4 Prevent notification tracking

Include Page
3.4 Preventing notification tracking
3.4 Preventing notification tracking

Silent push notifications

Silent push notifications improve the user experience by giving you a way to wake up your app periodically so that it can refresh its data in the background.

To enable silent push in your Xcode project:

  1. In the Project Navigator, select your project.

  2. In the editor, select your iOS app target.

  3. Select the Capabilities tab.

  4. Enable the Background Modes capability.

  5. Enable the Remote notifications background mode. 

    Image Added

To enable silent push on the Accengage dashboard, tick the content available checkbox when configuring your push message.

Please bare in mind that APNs treats silent push notifications as low priority and may throttle their delivery altogether if the total number becomes excessive. The actual limits are dynamic and can change based on conditions, but try not to send more than a few notifications per hour.