tgardner / cordova-galaxygear Goto Github PK
View Code? Open in Web Editor NEWCordova plugin that allows your app to have bidirectional communication with the Samsung Gear 2 Series.
License: Apache License 2.0
Cordova plugin that allows your app to have bidirectional communication with the Samsung Gear 2 Series.
License: Apache License 2.0
File transfer is not working - when I'm trying to send file to my Cordova app, onDataReceived event is not being called.
This plugin is not compatible with Gear Sport SM-R600NZKAMID?
Hi,
After adding in this plugin, my app doesn't build properly. It's fine once I remove the plugin. It launches and then immediately closes. Using Cordova version 4.0.0. I had this working at one point but not sure what's happening now. Any help would be appreciated.
Thanks
Hello,
I use this plugin to connect an Ionic project to a Samsung Gear S2 watch. This, in order to send strings from the watch to the Android smartphone (Galaxy S5 or Galaxy Note3 4G) or in the opposite sens.
I use in my project the JS code, provided as example, in the usage guide page.
The problem is :
the application is build and installed to the smartphone without problem. But when the app start up, I get an "error" message which says that (translated from french):
CORDOVA_GALAXY_APP does not come from Samsung Galaxy Apps and do not include any app for your Gear. Your device and data are more vulnerable to attacks by unknown sources apps. The installation will be cancelled and the app CORDOVA_GALAXY_APP will be removed from your phone.
Has someone got this error message on the Android smartphone?
Hi,
I try to use your plugin but withou success, i have a error in html "GalaxyGear its not defined". Used with PhoneGap 3.5.0 and Cordova. Can you help? Or put a Cordova project example?
A need to import some js in index.html?
Thanks for any help
Hi Tgardner
We have tried using your plugin in a sample cordova app to enable connection between a host device and a Samsung Gear S2 Classic.
As soon as we include the 'cordova-galaxygear' libraries the app displays the following error when built to the host device:
'Unfortunately the app has stopped working'
As soon as the plugin's library is removed, the sample app functions as per normal.
Would appreciate your insight on this as to possible causes and solutions...
@tgardner It is not an issue actually. I just didn't get how to communicate with Host (android) app when app is closed. Here is an use case :
I have an backend service and cordova app. I use this Cordova app to manage my room thermostat at home. Cordova app makes request to backend service and status of room thermostat is changed.
I can communicate gear and cordova app when cordova app is running. I can even see that they are paired when cordova app is not running. But the issue I can't send data to cordova app when it is not running.
So I would like to open/close my room thermostat with gear app while cordova app is not running. Does this plugin allow it? How can I do that?
Thanks!
I've got this in my log. Can you help me with it?
I/Samsung Accessory SDK(14951): Samsung Accessory SDK version: 2.0.19
D/SAAgent (14951): Inside onCreate of Intent Service
E/AndroidRuntime(14951): FATAL EXCEPTION: Thread-1511
E/AndroidRuntime(14951): Process: com._.app:remote, PID: 14951
E/AndroidRuntime(14951): java.lang.IllegalArgumentException: Service Intent must be explicit: Intent { act=com.samsung.accessory.api.ISAFrameworkManager }
E/AndroidRuntime(14951): at android.app.ContextImpl.validateServiceIntent (ContextImpl.java:2039)
E/AndroidRuntime(14951): at android.app.ContextImpl.bindServiceCommon(ContextImpl.java:2147)
E/AndroidRuntime(14951): at android.app.ContextImpl.bindService(ContextImpl.java:2125)
E/AndroidRuntime(14951): at android.content.ContextWrapper.bindService(ContextWrapper.java:559)
E/AndroidRuntime(14951): at com.samsung.accessory.api.SAAdapter.a(Unknown Source)
E/AndroidRuntime(14951): at com.samsung.accessory.api.c.a(Unknown Source)
E/AndroidRuntime(14951): at com.samsung.android.sdk.accessory.SAAgent$1.run(Unknown Source)
E/AndroidRuntime(14951): at java.lang.Thread.run(Thread.java:818)
V/ApplicationPolicy( 943): isApplicationStateBlocked userId 0 pkgname com._.app:remote
May be it's connected with this tiopic?
http://developer.samsung.com/forum/board/thread/view.do?boardName=SDK&messageId=278482
Hello, I am running the plugin and the HelloAccessory sample app. The peer device and the watch connect and exchange messages without issue. The issue is that after you click connect on the watch, it will automatically call connectionClosed after about 7 seconds and the debug output states:
Service connection lost, Reason : [PEER_DISCONNECTED]
This is a result of the agentCallback
and more specifically the SASocket.setSocketStatusListener
. Any thoughts as to why the status is changing and how to keep the connection persistent?
Thank you!
Hi!
I try to use your plugin on Samsung Note 3 (Android 5.0).
My app is launching and then crashes (and automatically removing from system).
I've got following log:
D/GalaxyGearPlugin(27332): initialize
D/GalaxyGearPlugin(27332): Attempting to start service
W/System.err(27332): java.lang.IllegalArgumentException: Service Intent must be
explicit: Intent { act=net.trentgardner.cordova.galaxygear.GearProviderService }
W/System.err(27332): at android.app.ContextImpl.validateServiceIntent(Context
Impl.java:2039)
W/System.err(27332): at android.app.ContextImpl.startServiceCommon(ContextImp
l.java:2077)
W/System.err(27332): at android.app.ContextImpl.startService(ContextImpl.java
:2052)
W/System.err(27332): at android.content.ContextWrapper.startService(ContextWr
apper.java:533)
W/System.err(27332): at net.trentgardner.cordova.galaxygear.GalaxyGearPlugin.
initialize(GalaxyGearPlugin.java:155)
W/System.err(27332): at org.apache.cordova.CordovaPlugin.privateInitialize(Co
rdovaPlugin.java:54)
W/System.err(27332): at org.apache.cordova.PluginManager.getPlugin(PluginMana
ger.java:169)
W/System.err(27332): at org.apache.cordova.PluginManager.exec(PluginManager.j
ava:120)
W/System.err(27332): at org.apache.cordova.CordovaBridge.jsExec(CordovaBridge
.java:59)
W/System.err(27332): at org.apache.cordova.engine.SystemExposedJsApi.exec(Sys
temExposedJsApi.java:41)
W/System.err(27332): at org.chromium.base.SystemMessageHandler.nativeDoRunLoo
pOnce(Native Method)
W/System.err(27332): at org.chromium.base.SystemMessageHandler.handleMessage(
SystemMessageHandler.java:37)
W/System.err(27332): at android.os.Handler.dispatchMessage(Handler.java:102)
W/System.err(27332): at android.os.Looper.loop(Looper.java:145)
W/System.err(27332): at android.os.HandlerThread.run(HandlerThread.java:61)
I/chromium(27332): [INFO:CONSOLE(89)] "[object Object]", source: file:///android
_asset/www/index.js (89)
E/ViewRootImpl(27332): sendUserActionEvent() mView == null
I/chromium(27332): [INFO:CONSOLE(25)] "No Content-Security-Policy meta tag found
. Please add one when using the cordova-plugin-whitelist plugin.", source: file:
///android_asset/www/plugins/cordova-plugin-whitelist/whitelist.js (25)
I/RegisterUponInstallReceiver(27332): ACTION_REGISTER_UPON_INSTALL
I/SAConfigUtil(27332): Parse Accssory Service profile xml file from: /res/xml/ac
cessoryservices.xml
V/SAConfigUtil(27332): Get from Android Resources
V/SAConfigUtil(27332): Start document
V/SAConfigUtil(27332): Start document
V/SAConfigUtil(27332): Start TAG resources
V/SAConfigUtil(27332): Start TAG application
V/SAConfigUtil(27332): Application Name: ALE_NAME: CordovaGearProvider
V/SAConfigUtil(27332): Start TAG serviceProfile
V/SAConfigUtil(27332): profileId:/system/cordovagearprovider
V/SAConfigUtil(27332): profileVersion:1.0
V/SAConfigUtil(27332): Service Policy:ANY
V/SAConfigUtil(27332): Service timeout:10
V/SAConfigUtil(27332): Start TAG supportedTransports
V/SAConfigUtil(27332): Start TAG transport
I/SAConfigUtil(27332): type:TRANSPORT_BT
I/SAConfigUtil(27332): type value:2
I/SAConfigUtil(27332): End TAG transport
I/SAConfigUtil(27332): End TAG supportedTransports
V/SAConfigUtil(27332): Start TAG serviceChannel
I/SAConfigUtil(27332): DataRate:low
I/SAConfigUtil(27332): Priority:low
I/SAConfigUtil(27332): Reliability:enable
I/SAConfigUtil(27332): End TAG serviceChannel
I/SAConfigUtil(27332): End TAG serviceProfile
D/SAConfigUtil(27332): application name is known CordovaGearProvider Please pass
it to framework
I/SAConfigUtil(27332): $$$com.samsung.accessory.api.SAServiceDescription@2d043a2
4
I/SAConfigUtil(27332): End TAG application
I/SAConfigUtil(27332): End TAG resources
I/SAConfigUtil(27332): End document
I/SAConfigUtil(27332): KEYS found arenet.trentgardner.cordova.galaxygear.GearPro
viderService
V/RegisterUponInstallReceiver(27332): IntentService class: net.trentgardner.cord
ova.galaxygear.GearProviderService
W/IInputConnectionWrapper(27332): showStatusIcon on inactive InputConnection
V/ActivityThread(27332): updateVisibility : ActivityRecord{105be98d token=androi
d.os.BinderProxy@20ea8a6b {com.my.app/com.my.app.MainActivity}} show :
true
I/RegisterUponInstallReceiver(27332): ACTION_REGISTER_UPON_INSTALL
I/SAConfigUtil(27332): KEYS found arenet.trentgardner.cordova.galaxygear.GearPro
viderService
V/RegisterUponInstallReceiver(27332): IntentService class: net.trentgardner.cord
ova.galaxygear.GearProviderService
I/RegisterUponInstallReceiver(27332): ACTION_REGISTER_UPON_INSTALL
I/SAConfigUtil(27332): KEYS found arenet.trentgardner.cordova.galaxygear.GearPro
viderService
V/RegisterUponInstallReceiver(27332): IntentService class: net.trentgardner.cord
ova.galaxygear.GearProviderService
I/chromium(27332): [INFO:CONSOLE(25)] "No Content-Security-Policy meta tag found
. Please add one when using the cordova-plugin-whitelist plugin.", source: file:
///android_asset/www/plugins/cordova-plugin-whitelist/whitelist.js (25)
I/RegisterUponInstallReceiver(27332): ACTION_REGISTER_UPON_INSTALL
I/SAConfigUtil(27332): KEYS found arenet.trentgardner.cordova.galaxygear.GearPro
viderService
V/RegisterUponInstallReceiver(27332): IntentService class: net.trentgardner.cord
ova.galaxygear.GearProviderService
I/RegisterUponInstallReceiver(27332): ACTION_REGISTER_UPON_INSTALL
I/SAConfigUtil(27332): KEYS found arenet.trentgardner.cordova.galaxygear.GearPro
viderService
V/RegisterUponInstallReceiver(27332): IntentService class: net.trentgardner.cord
ova.galaxygear.GearProviderService
I/chromium(27332): [INFO:CONSOLE(25)] "No Content-Security-Policy meta tag found
. Please add one when using the cordova-plugin-whitelist plugin.", source: file:
///android_asset/www/plugins/cordova-plugin-whitelist/whitelist.js (25)
I/RegisterUponInstallReceiver(27332): ACTION_REGISTER_UPON_INSTALL
I/SAConfigUtil(27332): KEYS found arenet.trentgardner.cordova.galaxygear.GearPro
viderService
V/RegisterUponInstallReceiver(27332): IntentService class: net.trentgardner.cord
ova.galaxygear.GearProviderService
I/RegisterUponInstallReceiver(27332): ACTION_REGISTER_UPON_INSTALL
I/SAConfigUtil(27332): KEYS found arenet.trentgardner.cordova.galaxygear.GearPro
viderService
V/RegisterUponInstallReceiver(27332): IntentService class: net.trentgardner.cord
ova.galaxygear.GearProviderService
I/chromium(27332): [INFO:CONSOLE(25)] "No Content-Security-Policy meta tag found
. Please add one when using the cordova-plugin-whitelist plugin.", source: file:
///android_asset/www/plugins/cordova-plugin-whitelist/whitelist.js (25)
I/Timeline(27332): Timeline: Activity_idle id: android.os.BinderProxy@20ea8a6b t
ime:12235689
I/ActivityManager( 886): Killing 27332:com.my.app/u0a411 (adj 0): stop com
.my.app
W/ActivityManager( 886): Spurious death for ProcessRecord{21412276 27332:com.at
letiq.app/u0a411}, curProc for 27332: null
W/InputMethodManagerService( 886): Got RemoteException sending setActive(false)
notification to pid 27332 uid 10411
Hello, I am new to tizen and programming in general. Can you please provide the source code so that I could take a look? Thank you!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.