pebble-watch

XMLHttpRequest fails basic authentication

流过昼夜 提交于 2019-12-09 12:39:46
问题 Any idea why XMLHttpRequest with correct credentials in Pebble JS Framework fails basic authentication on Android but works in iOS? Exactly the same code, along the lines of: var req = new XMLHttpRequest(); req.open(method, url, true, user, pass); req.send(data); req.onreadystatechange = function() { ... } Returns 401 in from Android Pebble app, but authenticates correctly in iOS. 回答1: I found a workaround that worked for me on Android. Don’t know why but direct authenticated request: req

Xamarin Obj-C Framework Binding (PebbleKit iOS)

强颜欢笑 提交于 2019-12-07 21:03:15
问题 I try to Bind this (PebbleKit.Framework) Framework to C# with Objecttive Sharpie on the command line. sharpie bind -o Binding -f PebbleKit.Framework -sdk iphoneos8.4 This is working without errors, but how do I get it to bind all Header Files? I just get 3 partial interfaces with name constants (with Verify Attribute). And some NSNumber from PBWatch+Sports.h for Example extern NSNumber *PBSportsTimeKey; Do I have to bind methods and classes manually? 来源: https://stackoverflow.com/questions

iOS: 'PebbleKit/PebbleKit.h' file not found Issue

眉间皱痕 提交于 2019-12-07 18:21:51
问题 I am working with a project which includes Pebble Kit framework. I have two targets in the same project. When I run project on device, it works fine. But as I archive the same project to create an IPA, it shows below error, Lexical or preprocessor error in PebbleWatch.h file, 'PebbleKit/PebbleKit.h' file not found. I cleaned project multiple times & re included the same frameworks in the project by selecting reference two both the projects. How this can be resolved ? 来源: https://stackoverflow

Can I read another applications memory?

人走茶凉 提交于 2019-12-07 09:20:25
I'd like to know wether it is possible to read some data from a foreign application in Android (like reading runtastics pulse, distance, pace e.g.) and include it into my own application? I'm not asking because I wanna do some bad stuff with it, I'd just like to know that for some interesting Pebble development tasks. By design, you absolutely can not do this (It must violate almost all the security principles). Furthermore, even if you find a hack to do this, it will get you kicked of the Play Store if it is detected. For the different apps you want to integrate, check their dev websites in

iOS: 'PebbleKit/PebbleKit.h' file not found Issue

喜夏-厌秋 提交于 2019-12-06 12:04:31
I am working with a project which includes Pebble Kit framework. I have two targets in the same project. When I run project on device, it works fine. But as I archive the same project to create an IPA, it shows below error, Lexical or preprocessor error in PebbleWatch.h file, 'PebbleKit/PebbleKit.h' file not found. I cleaned project multiple times & re included the same frameworks in the project by selecting reference two both the projects. How this can be resolved ? 来源: https://stackoverflow.com/questions/27098798/ios-pebblekit-pebblekit-h-file-not-found-issue

Xamarin Obj-C Framework Binding (PebbleKit iOS)

微笑、不失礼 提交于 2019-12-06 11:15:30
I try to Bind this (PebbleKit.Framework) Framework to C# with Objecttive Sharpie on the command line. sharpie bind -o Binding -f PebbleKit.Framework -sdk iphoneos8.4 This is working without errors, but how do I get it to bind all Header Files? I just get 3 partial interfaces with name constants (with Verify Attribute). And some NSNumber from PBWatch+Sports.h for Example extern NSNumber *PBSportsTimeKey; Do I have to bind methods and classes manually? 来源: https://stackoverflow.com/questions/32072363/xamarin-obj-c-framework-binding-pebblekit-ios

How to store byte arrays in C?

我与影子孤独终老i 提交于 2019-12-04 05:05:12
问题 This seems such a basic question, but I cannot find an answer anywhere on SO. I know that C/C++ do not have a byte datatype. I know that sizeof(char) == 1 . I'm trying to store 12 transmissions, each of 96 bytes on Pebble, as transmitted from my Android app. Due to limitation in the transmission size, I'm sending one at a time. Each one should be 'appended' to the last, as they should end up forming sequential space in memory, for reading as an image (one bit per pixel). I'm trying to do

Developers Option in Pebble App Settings

ぐ巨炮叔叔 提交于 2019-12-02 17:07:30
问题 I am following this manual and I don't have the Developers Option in my Pebble App Setting when I look at Application Manager. Any idea why is that and how I can find it? I have a Samsung Galaxy S6. Pebble app > Settings > Developer Options and tick Enable Developer Connection . There's no such 3 lines for the app setting as shown in this link. 回答1: The manual you linked to seems to be the right set of steps. The screenshot you posted though indicates you do not have a Pebble connected, which

How to store byte arrays in C?

老子叫甜甜 提交于 2019-12-02 06:54:40
This seems such a basic question, but I cannot find an answer anywhere on SO. I know that C/C++ do not have a byte datatype. I know that sizeof(char) == 1 . I'm trying to store 12 transmissions, each of 96 bytes on Pebble, as transmitted from my Android app. Due to limitation in the transmission size, I'm sending one at a time. Each one should be 'appended' to the last, as they should end up forming sequential space in memory, for reading as an image (one bit per pixel). I'm trying to do something like this: int transNum = 0; uint8_t image[][] = new uint8t[12][12] //not sure about uint8_t, and

Including an external javascript library in pebble js file?

梦想与她 提交于 2019-12-01 23:03:29
问题 Is there any way I can include an external JS library in my pebble code? Conventionally on a webpage I would do this in my head tags: <script type='text/javascript' src='https://cdn.firebase.com/js/client/1.0.11/firebase.js'></script> But in pebble, I am unable to do that since I am only using JS. So how can I include an external library for a JavaScript file. 回答1: At present, you cannot include external JS files. If you're using CloudPebble, then the only way to do this is to copy and paste