Skip to content
This repository was archived by the owner on Apr 2, 2018. It is now read-only.
This repository was archived by the owner on Apr 2, 2018. It is now read-only.

How to use this in browser ? #55

@shustrenko

Description

@shustrenko

Hello.
I use push notifications settings like this:

const cloudSettings: CloudSettings = {
'core': {
'app_id': 'MyAppID'
},
'push': {
'sender_id': 'MySenderID',
'pluginConfig': {
'ios': {
'badge': true,
'sound': true
},
'android': {
'iconColor': '#ff0000'
}
}
}
};

When i run app on device - is't all ok.
But when i run app in browser (ionic run browser) i have error:
Uncaught (in promise): TypeError: Cannot read property 'applicationServerKey' of undefined

Can you help me? I try add to cloudSettings
'browser':
{ applicationServerKey = 'MyServerKey'}

but get compiliation error 'browser'" not exist in type "PushPluginConfig"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions