Skip to content
Browse files

Create gh-pages branch via GitHub

  • Loading branch information...
1 parent 57ed475 commit cc02cb00e9f8c473f57211e46de1d2b18016de8b @dotcypress dotcypress committed
Showing with 7 additions and 3 deletions.
  1. +6 −2 index.html
  2. +1 −1 params.json
View
8 index.html
@@ -205,13 +205,17 @@ <h2 id="project_tagline">Monetise Your Apps and Games</h2>
<span class="c1">// Process event and display notification if needed</span>
<span class="n">GoSaveManager</span><span class="o">.</span><span class="na">processEvent</span><span class="o">(</span><span class="s">"EVENT_ID"</span><span class="o">);</span>
- <span class="c1">// Process event discretely - without displaying a notification </span>
+ <span class="c1">// Process event discretely - without displaying a notification</span>
<span class="c1">// if you don't want to disturb users</span>
<span class="n">GoSaveManager</span><span class="o">.</span><span class="na">processEvent</span><span class="o">(</span><span class="s">"EVENT_ID"</span><span class="o">,</span> <span class="kc">true</span><span class="o">);</span>
<span class="c1">// Display notifications for all previous discretely processed events</span>
<span class="c1">// Normally, you would use this after the game process has ended</span>
- <span class="n">GoSaveManager</span><span class="o">.</span><span class="na">flushEvents</span><span class="o">();</span>
+ <span class="n">GoSaveManager</span><span class="o">.</span><span class="na">commitSilentEvents</span><span class="o">();</span>
+
+ <span class="c1">// Display notifications for all unlocked achievements</span>
+ <span class="c1">// Normally, you would use this after the game process has ended</span>
+ <span class="n">GoSaveManager</span><span class="o">.</span><span class="na">commitUnlockAchievements</span><span class="o">();</span>
<span class="o">}</span>
<span class="o">}</span>
</pre></div>
View
2 params.json
@@ -1 +1 @@
-{"name":"GoSave Developers","tagline":"Monetise Your Apps and Games","body":"# Android SDK Integration Guide\r\nThis guide provides step-by-step instructions for adding GoSave rewards to your Android application.\r\n\r\n## Step 1: Register Your Android App\r\nYou will need both an App ID and an App Secret Key (not implemented yet) to integrate your app (one set per app).\r\n\r\n> IMPORTANT: For beta developers, we create authentication keys and send them in a separate document via email. If additional keys are required, they will be issued upon request.\r\n\r\n## Step 2: Download the GoSave SDK\r\n\r\nThe latest GoSave SDK can be downloaded from [here](https://github.com/GoSave/developers.gosave.com/zipball/master).\r\n\r\n> Currently, GoSave supports Android SDK 17 and higher.\r\n\r\n## Step 3: Add the GoSave Library\r\n\r\nAfter you have downloaded the GoSave SDK, you will need to import it into your project.\r\n\r\n\r\n## Step 4: Modify your *AndroidManifest.xml*\r\n\r\nIn order to make the GoSave SDK accessible to your application, you will need to add the following lines to your *AndroidManifest.xml*:\r\n\r\n### Initialise GoSave\r\n\r\n```xml\r\n<meta-data\r\n android:name=\"GS_APP_ID\"\r\n android:value=\"\\ %GoSave Application ID%\"/>\r\n<meta-data\r\n android:name=\"GS_APP_SECRET\"\r\n android:value=\"\\ %GoSave Application Secret%\"/>\r\n```\r\n\r\nReplace %GoSave Application ID% and %GoSave Application Secret% with your App ID and App Secret Key.\r\n\r\n> Example: `android:value=\"\\ 75122001847832\"`\r\n> Yes, please include the backslash and space \"\\ \" before the App ID and App Secret Key.\r\n\r\n### Add GoSave Permissions\r\nIn your *AndroidManifest.xml*, you will need to add the following permissions (if your manifest file does not already include them) to use the GoSave SDK.\r\n\r\n```xml\r\n<uses-permission android:name=\"android.permission.INTERNET\"/>\r\n<uses-permission android:name=\"android.permission.ACCESS_NETWORK_STATE\"/>\r\n<uses-permission android:name=\"android.permission.SET_DEBUG_APP\"/>\r\n<uses-permission android:name=\"android.permission.WRITE_EXTERNAL_STORAGE\"/>\r\n```\r\n\r\n### Declare GoSave Components\r\nIn the *application* block of *AndroidManifest.xml*, declare the following application components:\r\n\r\n```xml\r\n<activity\r\n android:name=\"com.gosave.sdk.android.ui.MiniAppActivity\"\r\n android:configChanges=\"orientation|screenSize\"\r\n android:screenOrientation=\"sensor\">\r\n</activity>\r\n<activity\r\n android:name=\"com.vungle.sdk.VungleAdvert\"\r\n android:configChanges=\"keyboardHidden|orientation|screenSize\"\r\n android:theme=\"@android:style/Theme.NoTitleBar.Fullscreen\"/>\r\n<activity\r\n android:name=\"com.jirbo.adcolony.AdColonyOverlay\"\r\n android:configChanges=\"keyboardHidden|orientation|screenSize\"\r\n android:theme=\"@android:style/Theme.Translucent.NoTitleBar.Fullscreen\"/>\r\n<activity\r\n android:name=\"com.jirbo.adcolony.AdColonyFullscreen\"\r\n android:configChanges=\"keyboardHidden|orientation|screenSize\"\r\n android:theme=\"@android:style/Theme.Black.NoTitleBar.Fullscreen\"/>\r\n<activity\r\n android:name=\"com.jirbo.adcolony.AdColonyBrowser\"\r\n android:configChanges=\"keyboardHidden|orientation|screenSize\"\r\n android:theme=\"@android:style/Theme.Black.NoTitleBar.Fullscreen\"/>\r\n<activity\r\n android:configChanges=\"screenSize|orientation\"\r\n android:name=\"com.sponsorpay.publisher.mbe.SPBrandEngageActivity\"\r\n android:hardwareAccelerated=\"true\"/>\r\n<activity\r\n android:name=\"com.tapjoy.TJCOffersWebView\"\r\n android:configChanges=\"orientation|keyboardHidden|screenSize\"/>\r\n<activity\r\n android:name=\"com.tapjoy.TapjoyFullScreenAdWebView\"\r\n android:configChanges=\"orientation|keyboardHidden|screenSize\"/>\r\n<activity\r\n android:name=\"com.tapjoy.TapjoyVideoView\"\r\n android:configChanges=\"orientation|keyboardHidden|screenSize\"/>\r\n<activity\r\n android:name=\"com.tapjoy.TJAdUnitView\"\r\n android:configChanges=\"orientation|keyboardHidden|screenSize\"\r\n android:theme=\"@android:style/Theme.Translucent.NoTitleBar.Fullscreen\"\r\n android:hardwareAccelerated=\"true\"/>\r\n<activity\r\n android:name=\"com.tapjoy.mraid.view.ActionHandler\"\r\n android:configChanges=\"orientation|keyboardHidden|screenSize\"/>\r\n<activity\r\n android:name=\"com.tapjoy.mraid.view.Browser\"\r\n android:configChanges=\"orientation|keyboardHidden|screenSize\"/>\r\n<activity\r\n android:name=\"com.vdopia.ads.lw.AdActivity\"\r\n android:configChanges=\"keyboard|keyboardHidden|orientation|screenLayout|uiMode|screenSize|smallestScreenSize\"/>\r\n<activity\r\n android:name=\"com.vdopia.ads.lw.mraid.MraidBrowserActivity\"\r\n android:configChanges=\"keyboard|keyboardHidden|orientation|screenLayout|uiMode|screenSize|smallestScreenSize\"/>\r\n<activity\r\n android:name=\"com.flurry.android.FlurryFullscreenTakeoverActivity\"\r\n android:configChanges=\"keyboard|keyboardHidden|orientation|screenLayout|uiMode|screenSize|smallestScreenSize\">\r\n</activity>\r\n\r\n<service android:name=\"com.vungle.sdk.VungleIntentService\"/>\r\n```\r\n\r\n## Step 5: Add a GoSave Button\r\nIn order to enable your users to view the GoSave Mini-App from within your application, you must provide them with the ability to tap a button to load the GoSave Mini-App. Most commonly, this button is included in the main menu or on your user’s account page.\r\n\r\n```java\r\npublic class YourActivity extends Activity {\r\n\r\n @Override\r\n protected void onCreate(Bundle savedInstanceState) {\r\n super.onCreate(savedInstanceState);\r\n setContentView(R.layout.activity_main);\r\n\r\n // Initialize GoSave\r\n GoSaveManager.initialize(this);\r\n\r\n final Button miniAppButton = (Button) findViewById(R.id.goSaveMiniApp);\r\n miniAppButton.setOnClickListener(new View.OnClickListener() {\r\n public void onClick(View v) {\r\n // Show GoSave Mini-App on Button click\r\n GoSaveManager.openApp();\r\n }\r\n });\r\n }\r\n}\r\n```\r\n\r\n## Step 6: Display GoSave InApp Notifications for Events\r\nVisual notifications may accompany certain events in your app. These notifications serve to reward your users for triggering events you have designated for your app.\r\nEvents are designed for you as a developer to reward end users at key moments that create the most value and are unique to your app content. You can choose specific events to trigger notifications. For example, when a user logs in to your app, completes a profile, reaches a score or level, etc.\r\n\r\n```java\r\npublic class YourActivity extends Activity {\r\n\r\n @Override\r\n protected void onCreate(Bundle savedInstanceState) {\r\n super.onCreate(savedInstanceState);\r\n setContentView(R.layout.activity_main);\r\n\r\n // Initialize GoSave\r\n GoSaveManager.initialize(this);\r\n }\r\n\r\n private void onSampleEvent(){\r\n // Process event and display notification if needed\r\n GoSaveManager.processEvent(\"EVENT_ID\");\r\n\r\n // Process event discretely - without displaying a notification \r\n // if you don't want to disturb users\r\n GoSaveManager.processEvent(\"EVENT_ID\", true);\r\n\r\n // Display notifications for all previous discretely processed events\r\n // Normally, you would use this after the game process has ended\r\n GoSaveManager.flushEvents();\r\n }\r\n}\r\n```\r\n","google":"","note":"Don't delete this file! It's used internally to help with page regeneration."}
+{"name":"GoSave Developers","tagline":"Monetise Your Apps and Games","body":"# Android SDK Integration Guide\r\nThis guide provides step-by-step instructions for adding GoSave rewards to your Android application.\r\n\r\n## Step 1: Register Your Android App\r\nYou will need both an App ID and an App Secret Key (not implemented yet) to integrate your app (one set per app).\r\n\r\n> IMPORTANT: For beta developers, we create authentication keys and send them in a separate document via email. If additional keys are required, they will be issued upon request.\r\n\r\n## Step 2: Download the GoSave SDK\r\n\r\nThe latest GoSave SDK can be downloaded from [here](https://github.com/GoSave/developers.gosave.com/zipball/master).\r\n\r\n> Currently, GoSave supports Android SDK 17 and higher.\r\n\r\n## Step 3: Add the GoSave Library\r\n\r\nAfter you have downloaded the GoSave SDK, you will need to import it into your project.\r\n\r\n\r\n## Step 4: Modify your *AndroidManifest.xml*\r\n\r\nIn order to make the GoSave SDK accessible to your application, you will need to add the following lines to your *AndroidManifest.xml*:\r\n\r\n### Initialise GoSave\r\n\r\n```xml\r\n<meta-data\r\n android:name=\"GS_APP_ID\"\r\n android:value=\"\\ %GoSave Application ID%\"/>\r\n<meta-data\r\n android:name=\"GS_APP_SECRET\"\r\n android:value=\"\\ %GoSave Application Secret%\"/>\r\n```\r\n\r\nReplace %GoSave Application ID% and %GoSave Application Secret% with your App ID and App Secret Key.\r\n\r\n> Example: `android:value=\"\\ 75122001847832\"`\r\n> Yes, please include the backslash and space \"\\ \" before the App ID and App Secret Key.\r\n\r\n### Add GoSave Permissions\r\nIn your *AndroidManifest.xml*, you will need to add the following permissions (if your manifest file does not already include them) to use the GoSave SDK.\r\n\r\n```xml\r\n<uses-permission android:name=\"android.permission.INTERNET\"/>\r\n<uses-permission android:name=\"android.permission.ACCESS_NETWORK_STATE\"/>\r\n<uses-permission android:name=\"android.permission.SET_DEBUG_APP\"/>\r\n<uses-permission android:name=\"android.permission.WRITE_EXTERNAL_STORAGE\"/>\r\n```\r\n\r\n### Declare GoSave Components\r\nIn the *application* block of *AndroidManifest.xml*, declare the following application components:\r\n\r\n```xml\r\n<activity\r\n android:name=\"com.gosave.sdk.android.ui.MiniAppActivity\"\r\n android:configChanges=\"orientation|screenSize\"\r\n android:screenOrientation=\"sensor\">\r\n</activity>\r\n<activity\r\n android:name=\"com.vungle.sdk.VungleAdvert\"\r\n android:configChanges=\"keyboardHidden|orientation|screenSize\"\r\n android:theme=\"@android:style/Theme.NoTitleBar.Fullscreen\"/>\r\n<activity\r\n android:name=\"com.jirbo.adcolony.AdColonyOverlay\"\r\n android:configChanges=\"keyboardHidden|orientation|screenSize\"\r\n android:theme=\"@android:style/Theme.Translucent.NoTitleBar.Fullscreen\"/>\r\n<activity\r\n android:name=\"com.jirbo.adcolony.AdColonyFullscreen\"\r\n android:configChanges=\"keyboardHidden|orientation|screenSize\"\r\n android:theme=\"@android:style/Theme.Black.NoTitleBar.Fullscreen\"/>\r\n<activity\r\n android:name=\"com.jirbo.adcolony.AdColonyBrowser\"\r\n android:configChanges=\"keyboardHidden|orientation|screenSize\"\r\n android:theme=\"@android:style/Theme.Black.NoTitleBar.Fullscreen\"/>\r\n<activity\r\n android:configChanges=\"screenSize|orientation\"\r\n android:name=\"com.sponsorpay.publisher.mbe.SPBrandEngageActivity\"\r\n android:hardwareAccelerated=\"true\"/>\r\n<activity\r\n android:name=\"com.tapjoy.TJCOffersWebView\"\r\n android:configChanges=\"orientation|keyboardHidden|screenSize\"/>\r\n<activity\r\n android:name=\"com.tapjoy.TapjoyFullScreenAdWebView\"\r\n android:configChanges=\"orientation|keyboardHidden|screenSize\"/>\r\n<activity\r\n android:name=\"com.tapjoy.TapjoyVideoView\"\r\n android:configChanges=\"orientation|keyboardHidden|screenSize\"/>\r\n<activity\r\n android:name=\"com.tapjoy.TJAdUnitView\"\r\n android:configChanges=\"orientation|keyboardHidden|screenSize\"\r\n android:theme=\"@android:style/Theme.Translucent.NoTitleBar.Fullscreen\"\r\n android:hardwareAccelerated=\"true\"/>\r\n<activity\r\n android:name=\"com.tapjoy.mraid.view.ActionHandler\"\r\n android:configChanges=\"orientation|keyboardHidden|screenSize\"/>\r\n<activity\r\n android:name=\"com.tapjoy.mraid.view.Browser\"\r\n android:configChanges=\"orientation|keyboardHidden|screenSize\"/>\r\n<activity\r\n android:name=\"com.vdopia.ads.lw.AdActivity\"\r\n android:configChanges=\"keyboard|keyboardHidden|orientation|screenLayout|uiMode|screenSize|smallestScreenSize\"/>\r\n<activity\r\n android:name=\"com.vdopia.ads.lw.mraid.MraidBrowserActivity\"\r\n android:configChanges=\"keyboard|keyboardHidden|orientation|screenLayout|uiMode|screenSize|smallestScreenSize\"/>\r\n<activity\r\n android:name=\"com.flurry.android.FlurryFullscreenTakeoverActivity\"\r\n android:configChanges=\"keyboard|keyboardHidden|orientation|screenLayout|uiMode|screenSize|smallestScreenSize\">\r\n</activity>\r\n\r\n<service android:name=\"com.vungle.sdk.VungleIntentService\"/>\r\n```\r\n\r\n## Step 5: Add a GoSave Button\r\nIn order to enable your users to view the GoSave Mini-App from within your application, you must provide them with the ability to tap a button to load the GoSave Mini-App. Most commonly, this button is included in the main menu or on your user’s account page.\r\n\r\n```java\r\npublic class YourActivity extends Activity {\r\n\r\n @Override\r\n protected void onCreate(Bundle savedInstanceState) {\r\n super.onCreate(savedInstanceState);\r\n setContentView(R.layout.activity_main);\r\n\r\n // Initialize GoSave\r\n GoSaveManager.initialize(this);\r\n\r\n final Button miniAppButton = (Button) findViewById(R.id.goSaveMiniApp);\r\n miniAppButton.setOnClickListener(new View.OnClickListener() {\r\n public void onClick(View v) {\r\n // Show GoSave Mini-App on Button click\r\n GoSaveManager.openApp();\r\n }\r\n });\r\n }\r\n}\r\n```\r\n\r\n## Step 6: Display GoSave InApp Notifications for Events\r\nVisual notifications may accompany certain events in your app. These notifications serve to reward your users for triggering events you have designated for your app.\r\nEvents are designed for you as a developer to reward end users at key moments that create the most value and are unique to your app content. You can choose specific events to trigger notifications. For example, when a user logs in to your app, completes a profile, reaches a score or level, etc.\r\n\r\n```java\r\npublic class YourActivity extends Activity {\r\n\r\n @Override\r\n protected void onCreate(Bundle savedInstanceState) {\r\n super.onCreate(savedInstanceState);\r\n setContentView(R.layout.activity_main);\r\n\r\n // Initialize GoSave\r\n GoSaveManager.initialize(this);\r\n }\r\n\r\n private void onSampleEvent(){\r\n // Process event and display notification if needed\r\n GoSaveManager.processEvent(\"EVENT_ID\");\r\n\r\n // Process event discretely - without displaying a notification\r\n // if you don't want to disturb users\r\n GoSaveManager.processEvent(\"EVENT_ID\", true);\r\n\r\n // Display notifications for all previous discretely processed events\r\n // Normally, you would use this after the game process has ended\r\n GoSaveManager.commitSilentEvents();\r\n\r\n // Display notifications for all unlocked achievements\r\n // Normally, you would use this after the game process has ended\r\n GoSaveManager.commitUnlockAchievements();\r\n }\r\n}\r\n```\r\n","google":"","note":"Don't delete this file! It's used internally to help with page regeneration."}

0 comments on commit cc02cb0

Please sign in to comment.
Something went wrong with that request. Please try again.