I'm using PushSharp library for pushing iOS notifications (it's live for last half year) and now I'm trying to extend functionality to new Mac OS Maverick feature (https://kandutech.net/) . Seems that PushSharp (https://github.com/Redth/PushSharp) doesn't currently support this feature, so I extended PushSharp library myself.
Seems like URL (gateway.push.apple.com:2195) the same as for iOS Distribution, but the JSON payload is slightly different. I adjusted JSON format. Don't see other difference in Pushing process. Did I miss something?
Still can't make it works. I'm getting permission, device token, the pushing process on server side looks fine (no errors occurred), but nothing pops up in Notification Center. Any ideas?
It turns out that url-args must be presented even if no url arguments needed. I missed it. This payload works:
{"aps":{"alert":{"title":"GAGARIN","body":"POEHALI!!!!"},"url-args":[]}}
Decided do not remove the question, hope it can help somebody.
Related
I've built a simple Xamarin.forms app which connects to a web service and gets one piece of data and displays it.
I wanted to do the same on an apple watch (targetting a series 2 apple watch) but I just don't understand how it works.
I've added the watch project and the watch extension, created the interface... Got a "refresh" button which changes the value of the label to a hard coded value but I want to get the data from a simple web service on app startup on wake and when button is activated (similar to my xamarin.forms iphone app)
I've tried using the classes that I use on the forms app to get the data but I can't reference them. I've tried using httpclient and that doesn't work.
After googling it appears I am suppose to use a HandleWatchKitExtensionRequest delegate in the phone app to get the data in a dictionary and then display the data. I haven't been able to find any really simple examples of this, but I'm confused because since apple watch version 3 the watch has been autonomous with cell access and therefore it doesn't have the host app necessarily.
So what I'm asking, is can the watch actually consume a web service alone using a xamarin phone app and if so, is there any simple examples because I can't find any (that aren't from 2015).
Sorry if this is vague, or I sound like a newbie (I definitely am a newbie when it comes to xamarin but any pointers or help would be appreciated)
According to https://developer.apple.com/documentation/foundation/nsurlsession?language=objc NSURLSession is available since watchOS 2.0. It is used to download the content from the web and is extensively documented just don't search for watchOS specifically as it is the same on all Apple OS.
But as HttpClient uses NSURLSession it is also available, so, maybe you need to add the reference to System.Net.Http.
When I was last developing for the watch I noticed that HttpClient would never work. I had to use NSUrlSession, so this is what helped me.
Hope this Helps
Till now all the queries i posted on stack got very quick response thanks to every one.
Suppose i have installed gui application on mac platform and that gui when i click button like connect or any action i do , it will interact with the server.
So above action on windows if we do we use autoit for client side operations, similarly i would like to know on mac platform
I came across stack forum few suggested ldtp driver or atomac , pyautogui (but mouse position based on x y which are uncertain). Is it correct one? Does it support all versions of mac? And now instead of writing multiple client side code for windows,mac,linux i want for cross platform too.
I tried atomac but unable to acess child pop window from parent window.
app.windows()[1].findAllR() returns indexerror
Please kindly help me on this. Advance thanks
I posted same question several times its closed as duplicate. So reposting question
Regards,
this interaction that you need with the Server, I'll recommend the Back4App and the amazing service provided. For now, you can check the Parse Server Documentation to macOS and after you just need to replace your keys and the ServerURL pointing to the Back4App side, the correct serverURL is https://parseapi.back4app.com/.
I'm having trouble signing up users through Parse in my Unity app. In the editor, everything works as expected, but once I build it to the WebGL platform, I have a problem.
When I call SignUpAsync() on a user, it is correctly setting up the user as intended on the Parse server and also sending the user email verifications (because I have it set to do so), however the actual task from the app does not receive any callback from Parse about its completion. In other words, task.IsCompleted is never set to true, no matter how long I wait. No errors are being thrown, and if I attempt to log in with the same credentials afterwards, it works. But there is still no way for the app to know that it's done signing up.
I don't know if this is a bug with Parse or its connection to WebGL, or if it's somewhere on my server. Does anyone have any ideas for things to check?
Parse's Unity SDK does not support WebGL since WebGL does not support threading and tasks.
I've been searching for a solution and found reference to people who say they have either grabbed the open source parse SDK and replaced tasks with coroutines OR swapped out the Unity SDK for the RESTful API.
Hope that helps point you in the right direction.
We're trying to sandbox our app to submit it to the Mac App Store (for the first time). It makes hard use of the lower level Carbon APIs and cannot operate the other way.
When I enabled the sandboxing, some features stopped working and I see this message in the log:
9/14/12 10:51:58.863 PM sandboxd[41243]: ([41237]) MouseRecorder(41237) deny hid-control
Is there any hidden entitlement I could use or we have no chance in the App Store with this app?
Even though I'm several years too late, I assume I can help others looking for the same. It's taken me days wondering why I couldn't connect to the keyboard. Today, the thought of the sandbox hit me, and I finally allowed my app access.
As described here, I added the following to the .entitlements file, and got access.
<key>com.apple.security.device.usb</key>
<true/>
To be specific, and not mislead:
I do not use Carbon; I use IOKit.hid, with Swift.
EDIT: See the new accepted answer
Just to answer my own question – it's not possible, there is no workaround and it's unlikely it will be possible in the future.
Is there any Remote wipe application which will be working on deleting the data in Emulator by sending an SMS from other emulator?? I found some of the free applications in android market on Remote Wipe.. But they are not working..
Please let me know if any of the application is working on Emulator
Thanks in advance
Uday
There is just one remote wipe application I have come across.
I have been trying to write one such application myself but I believe the permissions required are 2nd level and 3rd level permissions (check this link and this link). Thats is the reason I am unsuccessful as yet. I believe that you basically need to sign the package with the same signature as the OEM manufacturer to be able to grant those packages to your device.
If by an stroke of luck you do happen to make one successfully, please let us know the permission you have used to make such a thing possible! =)
Regards
Shouvik
EDIT: Okay I supposed I am wrong. I believe in android 2.2 it is possible to remote wipe your. I have not completely understood how to implement the function or the class yet, I plan to work on it as soon as I can spare some time. :)
Reply:
Well I have been looking at the SDK for some time now, and I can confidently tell you below 2.2, I am pretty sure there is no way I know of to remote wipe your data. I have although read on the mailers list that there is a function that enables a third party client to create a remote wipe application as you may have seen in my post above. I have actually use my own port of android on a device and have just used the brick, but if I do come across any reference that can show how you could achieve what you desire, I would be happy to leave a post here. Regards Shouvik.
Links
http://developer.android.com/reference/android/app/admin/DevicePolicyManager.html#wipeData%28int%
also for formatting the SD card I came across a permission that you can request, I guess you follow that you end up at the method.
http://developer.android.com/reference/android/Manifest.permission.html#MOUNT_FORMAT_FILESYSTEMS