Page History

Versions Compared

Key

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

...

Info
  • Gigya's iOS SDK requires iOS 78.0 and above.
  • Gigya's iOS SDK supports iOS 9. See our tips for preparing your app to work with iOS 9.
  • Gigya's iOS SDK supports iOS 10.
  • If you wish to integrate the Gigya service in your server application, please refer to our Server Side SDKs and choose the SDK that suits your development platform.
  • If you want to upgrade an app that was developed with an earlier version, please use the Upgrade Guide to migrate your code.

...

If you are upgrading from a former version, please make sure to read the SDK's Change Log.

...

a. Add GigyaSDK Framework to Your Application's Xcode Project

  1. Unzip  GigyaSDK.zip and drag the GigyaSDK.framework file into the "Frameworks" folder of your application's Xcode project.
    Note: You need Xcode 4.5 or above to be able to compile with the Gigya SDK framework.
  2. Import the Gigya SDK header:

    Code Block
    languagecpp
    linenumberstrue
    #import <GigyaSDK/Gigya.h>
  3. Add the following to your app's AppDelegate:

    Code Block
    languagecpp
    linenumberstrue
    - (BOOL)application:(UIApplication *)app openURL:(NSURL *)url options:(NSDictionary<NSString *,id> *)options 
    {
        return [Gigya handleOpenURL:url app:app options:options];
    }
     
    - (BOOL)application:(UIApplication *)application openURL:(NSURL *)url sourceApplication:(NSString *)sourceApplication annotation:(id)annotation
    {
        return [Gigya handleOpenURL:url application:application sourceApplication:sourceApplication annotation:annotation];
    }
     
    - (void)applicationDidBecomeActive:(UIApplication *)application
    {
        [Gigya handleDidBecomeActive];
    }

...

  • Comments - comments.commentsUI. Note: commenting is supported, but sharing the comment to social networks is not supported. 
  • Reviews - comments.commentsUI.
  • RaaS Screen-Sets - accounts.screenSet.
  • Share Bar - socialize.ShareBarUI. Please note: the share buttons that implement providers' own (native) buttons are not supported. These include Facebook's native Facebook Like  button, Twitter's  Tweet  button, and more. For the full list please refer to the shareButtons parameter in socialize.showShareBarUI.

...

 

Code Block
languagecpp
linenumberstrue
- (BOOL)application:(UIApplication *)app openURL:(NSURL *)url options:(NSDictionary<NSString *,id> *)options 
{
    return [Gigya handleOpenURL:url app:app options:options];
}
 
- (BOOL)application:(UIApplication *)application openURL:(NSURL *)url sourceApplication:(NSString *)sourceApplication annotation:(id)annotation
{
    BOOL wasHandled = [Gigya handleOpenURL:url
                             application:application
                             sourceApplication:sourceApplication
                             annotation:annotation];
    if (wasHandled)
        return NO;

    // Enter your handler code here
}

 

Handling Screen-Set Events

The following is an example of code to handle screen-set events, i.e., onAfterScreenLoad of the Registration screen-set.

Code Block
languagec#cpp
@interface MyViewController : UIViewController <GSPluginViewDelegate> 

@end 

@implementation MyViewController 

- (void)viewDidLoad
{
    [super viewDidLoad];


    [Gigya showPluginDialogOver:self 
           plugin:@"accounts.screenSet" 
           parameters:params 
           completionHandler:nil 
           delegate:self]; 
} 

- (void)pluginView:(GSPluginView *)pluginView firedEvent:(NSDictionary *)event 
{ 
    NSLog(@"Plugin event from %@ - %@", pluginView.plugin, [event objectForKey:@"eventName"]); 
}


- (void)pluginView:(GSPluginView *)pluginView finishedLoadingPluginWithEvent:(NSDictionary *)event
{
    NSLog(@"Finished loading plugin: %@", pluginView.plugin);
} 


- (void)pluginView:(GSPluginView *)pluginView didFailWithError:(NSError *)error
{
    NSLog(@"Plugin error: %@", [error localizedDescription]);
}

@end

 

...