how to get user location on nativeScript app - nativescript

i'm developing a nativeScript application,in my app I need to get user's location,I have already tried to fix it reading the documentation, but I couldn't fix it. can anyone help with this

You need nativescript-geolocation plugin and the docs cover that too.

Related

Playstore: Couldn't upload, try again

I'm trying to upload an app to Google Play-Store but I'm getting the error message below without any further comments:
Couldn't upload. Try again.
I have uploaded numerous apps to Play-Store in the past. I'm not exactly sure why this one isn't going through. The apk in question is a signed-release apk. I'd appreciate some help on this. Kindly find below a screenshot from the Play Store page.
This was a very weird fix but I eventually did it by switching to the old console. The apk file uploaded successfully immediately I did. The link to the old console can be found on the navigation drawer to the left.
Drawer > Use classic Play Console
Sadly, Google is killing the old console as from November 2, 2020.
Using the Incognito Mode worked for me as per this Answer
I was able to fix it, here are steps you need to perform
Switch to old console
Remove any old pending releases
Switch back to new console
It should work now!

Is it possible to prevent your app from appearing as an extension for specific apps?

I've built an Action Extension for my app, and when i choose to Open In... something from inside of my app, I appear as an extension for myself. This UX is kinda weird, but also, it doesnt even work when i try to be an extension of myself.
I dont see anything in the documentation that specifies responding apps aside from NSExtensionActivationRule?
This is not possible at the moment in iOS 8.0

Detecting Full screen applications on mac

I am developing a simple application in Cocoa, and I want to detect whether any application is running in full screen mode. Is this possible?
Through runningApplications API, I can get various informations but there is no specific property related to full screen mode. Does any one know how to detect it? Is there any carbon event or API for this?
I ran into this in the spring and spent forever trying to get it to work. I ended up packaging my code up into a little GitHub project, but I completely forgot to share it here.
https://github.com/shinypb/FullScreenDetector
Hope this is useful for someone.
Anyways after trying out so many options and digging into the NSWorkspace i have found way through which we can achieve this their is notification
"NSWorkspaceActiveSpaceDidChangeNotification"
Apple doc says "Posted when a Spaces change has occurred." so by using we can register for it. along with this we need to use the NSWindow's property "isOnActiveSpace" , so by this we can detect when application enters full screen mode and exits from it.
You want to key-value observe -[NSApplication currentSystemPresentationOptions]. When the active app is in full-screen mode, that property will include NSApplicationPresentationFullScreen.

Has anyone added iAds to an existing app that's already on the app store? If so, how do you do this?

I assumed you could just add a banner by simply updating it but I saw something in iTunes Connect that made me think I might need to do something else to make the ads run correctly. Any insight is much appreciated, thank you.
Just build it with ads and submit it for review with new binary.

How do I get Android Styleguide Switches in Appcelerator?

The on/off switches shown on http://developer.android.com/design/building-blocks/switches.html#switches are awesome. I can't figure out how to get them in Appcelerator
It is not a titanium thing, it is android. If you want to support 2.x, you cant have the 4.x look. You would have to change the manifest to change the SDK level support. Here is a good article that helped me. http://developer.appcelerator.com/doc/mobile/android-custom-androidmanifest

Resources