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

Different onesignal_app_id depending on environment #95

Closed
note89 opened this issue Oct 20, 2016 · 1 comment
Closed

Different onesignal_app_id depending on environment #95

note89 opened this issue Oct 20, 2016 · 1 comment

Comments

@note89
Copy link

note89 commented Oct 20, 2016

I would like to have different onesignal_app_id depending on environment production/develop
I want to have this to have a debug environment to not send unexpected notifications to users while developing.

    defaultConfig {
        ...
        manifestPlaceholders = [manifestApplicationId: "${applicationId}",
                                onesignal_app_id: "YOUR_ONESIGNAL_ID",
                                onesignal_google_project_number: "YOUR_GOOGLE_PROJECT_NUMBER"]
    }

I have tried some different approaches but I'm not really sure what the manifestPlaceholders do.
i have something called buildTypes and it has three modes (debug, staging, release), can I put something in there ?
or do something in AndroidManifest ?

Cheers!

@note89 note89 changed the title Different id depending on environment Different onesignal_app_id depending on environment Oct 20, 2016
@jkasten2
Copy link
Member

@note89 You can try some of the suggestions in this issue.
OneSignal/OneSignal-Android-SDK#9

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants