https://github.com/upsight/fusesdkmarmalade
This is a Marmalade wrapper for the Fuse SDK
https://github.com/upsight/fusesdkmarmalade
Last synced: 12 months ago
JSON representation
This is a Marmalade wrapper for the Fuse SDK
- Host: GitHub
- URL: https://github.com/upsight/fusesdkmarmalade
- Owner: upsight
- License: other
- Created: 2016-06-09T14:37:21.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2015-08-26T16:12:33.000Z (almost 11 years ago)
- Last Synced: 2025-04-19T07:35:44.761Z (about 1 year ago)
- Language: C
- Homepage: http://www.fusepowered.com
- Size: 183 MB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# 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](http://www.madewithmarmalade.com) wrapper around [FuseSDK](http://www.fuseboxx.com) 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");
```
3. 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](https://www.fuseboxx.com) dashboard.
4. 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](https://www.fusepowered.com) and accept the terms and conditions on the Fuse Powered website.
## Contact Us
For more information, please visit [http://www.fusepowered.com](http://www.fusepowered.com). For questions or assistance, please email us at [support@fusepowered.com](mailto:support@fusepowered.com).