I'm using nativescript-vue and nativescript-geolocation plugin.
Apple doesn't approve my app because I don't specify what is the reason for geo tracking upon sending the allow request to the user (see example):
As far as I see, there is no such option in nativescript-geolocation to change that message.
Is there any other ways to change this message or perhaps there is a hidden option at nativescript-geolocation that I've missed?
Refer the plugin ReadMe file,
For a custom prompt message on IOS, the following keys are required:
NSLocationAlwaysAndWhenInUseUsageDescription (iOS 11.0+) OR
NSLocationAlwaysUsageDescription (iOS 8.0-10.0) and
NSLocationWhenInUseUsageDescription. Read more about request
always usage.
You will add these keys in your App_Resources/iOS/info.plist
<key>NSLocationWhenInUseUsageDescription</key>
<string>Your message here.</string>
Related
We use fabrics and crashlytics on the macOS platform. Swift development language is used.
We added Fabric.with([Crashlytics.self]) to the applicationDidFinishLaunching, but we found that it would upload the user's data by default.
We want to say that we give users a tick option to upload the log data we need when the user agrees, instead of always uploading it by default. Of course, when the user removes the tick option, it stops uploading relevant information.
In other words, how do we start and stop uploading the log information collected by app manually?
You are manually initializing crashlytics with Fabric.with([Crashlytics.self]) in AppDelegate.swift
You can actually have a check in place before the initialization, to it initializes only if the user checks the tick option.
#if user.tick
Fabric.with([Crashlytics.self])
#endif
I have set up an Email notification in SonarQube for project builds
Everything is working fine but I need to change the following part
See it in SonarQube: http://<>domain-name:9000/project/issues?id=attendance%3AAttendance%3Amaster&createdAt=2018-10-23T10%3A17%3A44%2B0000
to
See it in SonarQube: http://<>domain-name:9000/project/issues?id=attendance%3AAttendance%3Amaster only
Can I modify that ?
No, you cannot modify the URLs embedded in email notification messages. And in this particular example, the createdAt parameter is intentionally present to direct you to a page with filtered results so that you see only relevant content. In other words, this is explicitly by design, and it's not customizable.
I have gotten the following message from App Store Connect when trying to upload a new version...
Missing Purpose String in Info.plist File - Your app's code references one or more APIs that access sensitive user data. The app's Info.plist file should contain a NSBluetoothPeripheralUsageDescription key with a user-facing purpose string explaining clearly and completely why your app needs the data. Starting Spring 2019, all apps submitted to the App Store that access user data will be required to include a purpose string.If you're using external libraries or SDKs, they may reference APIs that require a purpose string. While your app might not use these APIs, a purpose string is still required. You can contact the developer of the library or SDK and request they release a version of their code that doesn't contain the APIs.
But I do not use bluetooth anywhere in the app (no bluetooth code).
Here are the frameworks I use:
CoreText, QuartzCore, CoreLocation, CoreGraphics, Foundation, UIKit, StoreKit, CoreData, MapKit
Any advice?
Open Info Plist file and press on + sign add new key in info.plist of your project and add this NSBluetoothPeripheralUsageDescription and write value "Explain the reasons for Bluetooth".
FacebookSDK is scanning Bluetooth since v 4.33. This is the description I have picked.
Facebook-SDK v4.34 contains Places Kit which contains Bluetooth scanning. This app isn't scanning/using Bluetooth at all.
when compilear the Google example I can't get the authorization to create a game room.
All is ok in the Google console. The constants file have my app Id. What's is missing?
In the file Constants.h
// Update the following value with your Client ID, // Refer
https://developers.google.com/games/services/console/enabling#d_gather_credentials_for_authentication_and_authorization
for more information //
define CLIENT_ID #"REPLACE_ME" //<----------------- HERE
And change
change the Bundle Identifier from com.example.ButtonClicker to
something appropriate for your Provisioning Profile. (It will probably
look like com..ButtonClicker)
I want to send email using mailto tag with a single pdf file as attachment.
mailto tag opens the mail window with passed arguments like to and subject using:
Mail to Manager
But, attachments as a parameter isnt working.
Please suggest how to send pdf attachment in rhomobile.
Thanks
I think that you need to add the physical path to the PDF file for it to work (otherwise it may not know where the file is). This post on a forum says as follows:
The only problem is that this "mailto" command executes on the
client machine, therefore it tries to locate the attachment file by
a physical path, and not by a virtual path.
That is,
Using mailto:iudith.m#zim.co.il?subject=my report&body=see attachment&attachment="\myhost\myfolder\myfile.lis"
works ok, but only for local users (those connected to the same
network as the "myhost" machine).
Using mailto:iudith.m#zim.co.il?subject=my report&body=see attachment&attachment="http://myhost:myport/my_location_virtual_path/myfile.lis"
does not work, it does not recognize such a syntax as valid for
the attachment file.
In your case you would properbly need to look at this part of the Rhomobile docs (on file system access) to get the right path to your file.
EDIT:
From you comment I can see that you are trying to make it work on iOS (due to the iOS specific path).
In this discussion (from Rhomobile's Google Group) it is explained that mailto doesn't support attachments on iOS. It says as follows:
Don't know about other platforms, but you cannot do this on iOS. mailto: does not support attachments on iOS.
You can do it using a native API, MFMailComposeViewController.
This is a complete controller with UI, so you would have to write a Native View Extension to use it:
http://docs.rhomobile.com/rhodes/extensions#native-view-extensions
EDIT 2:
I've looked around and it seems that mailto doesn't support attachments on Android either. This is because Android supports the RFC 2368 mailto protocol, which doesn't include attachments. Here is a reference to the Android mailto url parser.
I would suggest that you do as suggested for iOS, write a native extension. I think this post would be relevant for you.