Skip to content

upsight/FuseSDKMarmalade

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 

Repository files navigation

FuseSDK for Marmalade

Current Version

Version: 2.2.2

If Updating

Please note that extra parameters have been added to the following callbacks: FUSESDK_REWARDED_AD_COMPLETED
FUSESDK_VIRTUALGOODSOFFER_ACCEPTED
FUSESDK_IAPOFFER_ACCEPTED
The updated callback structs are available in docs/Callbacks.txt

Description

Provides a Marmalade wrapper around FuseSDK for Android and iOS.

This Extension currently supports

ANDROID 
IOS

Installation

  1. Copy the FuseSDK directory into your extensions folder.

  2. Subproject the FuseSDK Extension in your Marmalade Project's MKB file

   subprojects
    {
        FuseSDK
    }

Getting Started

  1. Enable Push Notifications

    Edit FuseSDK/source/ExtraAppManifests.txt
    Replace com.fusepowered.marmaladesample with your application bundle ID in the two activities

    Edit FuseSDK/source/ExtraManifests.txt
    Replace com.fusepowered.marmaladesample with your application bundle ID for the two permissions

    Replace notification_large.png and notification_small.png in FuseSDK/res/drawable with your own icons
    The names must be the same.
    notification_large.png is a 72x72 24-bit png
    notification_small.png is a 36x36 24-bit png

  2. To use the FuseSDK extension in your project, first include the FuseSDK header:

    #include "FuseSDK.h"

Next, call 'FuseSDKStartSession' as soon as the app is initialized:

    FuseSDKStartSession("app_key"); 
  1. Project Settings - Register for callbacks as needed
    eg)
    FuseSDKRegister(FUSESDK_SESSION_STARTED, &GotSessionReceived, NULL);
    FuseSDKRegister(FUSESDK_SESSION_LOGIN_ERROR, &SessionLoginError, NULL);
See FuseSDK/docs/Callbacks.txt for information about callback functions available from the FuseSDK

The Fuse API key can be found in your dashboard view for the app your are integrating by navigating to Admin->Integrate SDK in the Fuseboxx dashboard.

  1. UnRegister Callbacks when application terminates
    eg)
    FuseSDKUnRegister(FUSESDK_SESSION_STARTED, &GotSessionReceived);
    FuseSDKUnRegister(FUSESDK_SESSION_LOGIN_ERROR, &SessionLoginError);

See the test project in FuseSDK/test for a very simple example of registering and unregistering callbacks, starting a session, and displaying an ad.

Features

See FuseSDK/docs/FuseSDK.txt for a list of function calls supported by the extension

Callbacks

Many FuseSDK callbacks send information as structs through the systemData parameter.
Information about callbacks and the structures they pass can be found in FuseSDK/docs/Callbacks.txt The test project gives some examples of retrieving callback data from these structs.

Legal Requirements

By downloading the Fuse Powered SDK, you are granted a limited, non-commercial license to use and review the SDK solely for evaluation purposes. If you wish to integrate the SDK into any commercial applications, you must register an account with Fuse Powered and accept the terms and conditions on the Fuse Powered website.

Contact Us

For more information, please visit http://www.fusepowered.com. For questions or assistance, please email us at [email protected].