Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added new ProtocolPush and added OneSignal implementing it #153

Open
wants to merge 11 commits into
base: v4-develop
Choose a base branch
from
Prev Previous commit
Next Next commit
Updated to use the latest Native iOS and Android SDKs
* Updated to 1.7.0 for both Android and iOS.
jkasten2 committed Apr 9, 2015
commit e6960602f79b67bad3fe70347a16389795c79356
Binary file modified plugins/GameThrive/proj.android/sdk/gamethrivesdk.jar
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -18,7 +18,7 @@
* limitations under the License.
*/

// GameThrive SDK v1.6.3
// GameThrive SDK

#import <Foundation/Foundation.h>
#import <objc/runtime.h>
@@ -29,21 +29,23 @@ typedef void (^GTIdsAvailableBlock)(NSString* playerId, NSString* pushToken);
typedef void (^GTHandleNotificationBlock)(NSString* message, NSDictionary* additionalData, BOOL isActive);

/**
`GameThrive` provides a high level interface to interacting with GameThrive's push service.
`GameThrive` provides a high level interface to interact with GameThrive's push service.

`GameThrive` exposes a defaultClient for applications which use a globally available client to share configuration settings.

Include `#import "GameThrive/GameThrive.h"` in your application files to access GameThrive's methods.

### Setting up the SDK ###

Follow the documentation from http://docs.gamethrive.com/category/10-ios-game-setup to setup with your game.
Follow the documentation from http://documentation.gamethrive.com/v1.0/docs/installing-the-gamethrive-ios-sdk to setup with your game.

*/
@interface GameThrive : NSObject

@property(nonatomic, readonly, copy) NSString* app_id;

extern NSString* const GT_VERSION;

///--------------------
/// @name Initialize
///--------------------
@@ -75,6 +77,7 @@ typedef void (^GTHandleNotificationBlock)(NSString* message, NSDictionary* addit

- (void)sendTags:(NSDictionary*)keyValuePair onSuccess:(GTResultSuccessBlock)successBlock onFailure:(GTFailureBlock)failureBlock;
- (void)sendTags:(NSDictionary*)keyValuePair;
- (void)sendTagsWithJsonString:(NSString*)jsonString;

- (void)getTags:(GTResultSuccessBlock)successBlock onFailure:(GTFailureBlock)failureBlock;
- (void)getTags:(GTResultSuccessBlock)successBlock;
@@ -84,6 +87,7 @@ typedef void (^GTHandleNotificationBlock)(NSString* message, NSDictionary* addit

- (void)deleteTags:(NSArray*)keys onSuccess:(GTResultSuccessBlock)successBlock onFailure:(GTFailureBlock)failureBlock;
- (void)deleteTags:(NSArray*)keys;
- (void)deleteTagsWithJsonString:(NSString*)jsonString;

- (void)sendPurchase:(NSNumber*)amount onSuccess:(GTResultSuccessBlock)successBlock onFailure:(GTFailureBlock)failureBlock DEPRECATED_ATTRIBUTE;
- (void)sendPurchase:(NSNumber*)amount DEPRECATED_ATTRIBUTE;