How to .

Solved!
Posted in General by pierre louis Tue Nov 10 2015 15:21:34 GMT+0000 (UTC)·13·Viewed 837 times

pierre louis
Nov 10, 2015

Damn, sorry, its a mistake.
Actually, i wanted to know how to make a push notification or even a sound pop out of the tablet when im using my own app with the moca plug-in installed.
Everything seems to work well as i can see connections i made in the dashboard.
Only actions i've set in campaignes and experiences seems not to work ?
To let ou know : im working on a Samsung galaxy tab4 with cordova and so the cordova plug-in.
Thanks for your help

pierre louis
Nov 10, 2015

I think the problem takes place in MOCA.js where i must define some actions like : MOCA.addEnterBeaconListener and i did it : MOCA.addEnterBeaconListener (function (callback) {
callback.identifier = "43890CB3-F52C-7655-B99D-D71C5C4B7F1A",
callback.name = "Test 3",
callback.proximity = 1
});

but is it necessery as i already setted actions on the MOCA console or do i miss something ?

pierre louis
Nov 10, 2015

I think the problem takes place in MOCA.js where i must define some actions like : MOCA.addEnterBeaconListener and i did it : MOCA.addEnterBeaconListener (function (callback) {
callback.identifier = "43890CB3-F52C-7655-B99D-D71C5C4B7F1A",
callback.name = "Test 3",
callback.proximity = 1
});

but is it necessery as i already setted actions on the MOCA console or do i miss something ?

Ivan Gonzalez
Nov 10, 2015

Hi Pierre,

Event listeners are optional, and you don't need to implement them in order to manage proximity events. We give you this possibility in case you want to create some custom stuff inside your app.
So after you install the MOCA Plugin, and create proximity experiences in the console, plugin will manage automatically the local push notifications, i.e. there is no need to listen the proximity events if you don't want.

We are glad you can create things with our plugin! It will be updated the next week, so stay tuned for update it as it will improve a lot of things I'm sure you will enjoy.

Best,

Ivan.

pierre louis
Nov 10, 2015

Thanks Ivan, but the fact is that they are no notifications comming on the tablet when i enter in the beacon range or move my tablet away from it. This is why i thought i needed to implement MOCA.js

Ivan Gonzalez
Nov 10, 2015

Pierre,

  • Please ensure the dates of the campaign are correct.
  • In the campaign list, ensure that the campaign is "started" (click on start).
  • Ensure the beacons you've added to your account have the right values. (UUID, Major, Minor).
  • You can see that the SDK is looking for beacons because Android generates lots of logs.

Please let us know if that solved your issue.

pierre louis
Nov 10, 2015

I checked every point you mentionned, i dont succeed in founding logs but everything else is ok.
Thanks for your help

Ivan Gonzalez
Nov 10, 2015

Bluetooth logs are generated by Android when looking for beacons, that may indicate that for some reason the proximity engine has not started. Common causes:

  • Bluetooth is not enabled.
  • Device does not support Bluetooth Low Energy (afaik your device supports it).
  • Android version is >= KitKat, (afaik minimum version in this device is kitkat).

Please check the logs after you start the App and copy paste it here so we can help you find the cause.

pierre louis
Nov 16, 2015

Hi, i've been working on everything you said, the problem must be, as you said, that the BLE is not activated on My tablet, only the "normal" bluetooth is curently activated.
How can i activate BLE, and actualy im now working on a Nexus 7 tablet.
Thanks

pierre louis
Nov 16, 2015

I added a BLE tools app on my nexus, it told me that BLE is not supported by this device, but after some shearch, i founded that in fact it is, i just need to activate it, but i dont know how .
thanks

Ivan Gonzalez
Nov 16, 2015

Hi Pierre,

It actually depends on the manufacturer.
Generally speaking, if the device does not have a Bluetooth Low Energy chip, there is no way to activate it as the required hardware is not present.

Best,

Ivan.

pierre louis
Nov 16, 2015

ok, thanks, i also tryed to add a geofence but i did not succeded in generating message when comming in or out the geofence. can you help me ?
thanks again


Ivan Gonzalez marked this as solved
Markdown is allowed