Skip to content
This repository was archived by the owner on Nov 23, 2024. It is now read-only.

Is there an issue with Ionic, specifically Ionic Creator tool #36

Open
wheerani opened this issue Dec 23, 2016 · 1 comment
Open

Is there an issue with Ionic, specifically Ionic Creator tool #36

wheerani opened this issue Dec 23, 2016 · 1 comment

Comments

@wheerani
Copy link

Am using http://creator.ionic.io to create a hybrid iOS/Android app.

Have added cordova-plugin-smooch as a plugin in Code Settings.

Have added ionic-native.min.js.

Have added smoochio.js with following code...

Smooch.init({
"appToken": "MY-TOKEN",
"soundNotificationEnabled": "true",
"imageUploadEnabled": "true",
});
The smooch.io button appears in the app but I think it's not 'native' because when user tries to type in message field, the iOS keyboard goes on top of the message input field so user can't see what they are typing. Also, in the smooch.io message window header, the 'X' or close icon doesn't show up...

Not sure what I'm missing to activate the 'native' plugin so it functions correctly on the phone. Thanks for any help.

@jugarrit
Copy link
Contributor

I am not exactly familiar with Ionic but I think I know what the problem is.

If you have the smooch-web script included in your page, the global variable Smooch from the cordova plugin is being overwritten and you are initializing with the smooch-web SDK instead of the smooch-ios SDK.

A simple test for this is to remove that script from your page and try again.

Initializing the cordova plugin will not make anything appear in the page automatically, it must be followed with a Smooch.show() call.

Hope that helps.

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

No branches or pull requests

2 participants