This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Firebase | |
... | |
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool { | |
... | |
FirebaseApp.configure() | |
if !UserDefaults.standard.bool(forKey: "launchedBefore") | |
{ | |
UserDefaults.standard.set(true, forKey: "launchedBefore") | |
GoogleAdsACService.app.adToAction(processAction: processActionExample) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Apache License | |
Version 2.0, January 2004 | |
http://www.apache.org/licenses/ | |
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION | |
1. Definitions. | |
"License" shall mean the terms and conditions for use, reproduction, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//InstanceId solution | |
public class MainActivity extends AppCompatActivity { | |
@Override | |
protected void onCreate(Bundle savedInstanceState) { | |
super.onCreate(savedInstanceState); | |
prefs = getSharedPreferences("com.mycompany.myAppName", MODE_PRIVATE); | |
setContentView(R.layout.activity_main); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Remote Config Solution | |
public class MainActivity extends AppCompatActivity { | |
// Remote Config Parameter Key | |
public static Map<String, String> RC_KEY_TO_EVENT_MAP; | |
static { | |
RC_KEY_TO_EVENT_MAP = new HashMap<>(); | |
RC_KEY_TO_EVENT_MAP.put("rc_retention", "p_retention"); | |
RC_KEY_TO_EVENT_MAP.put("rc_complete_level_3", "p_complete_level_3"); | |
RC_KEY_TO_EVENT_MAP.put("rc_complete_level_5", "p_complete_level_5"); |