Requesting user location in Swift - swift

I am trying to get the pop up to appear for the user to allow location to be used and just cannot get it to work. I have gone into info.plist to add it to the "privacy - location always and when in use usage" and added the line '''CLLocationManager().requestWhenInUseAuthorization()'''
return true" in my ViewController which as far as I can find is all I need but it doesn't give the pop up. Anyone able to help?!

in info.plist use these .It may help
Privacy - Location Always and When In Use Usage Description
Privacy - Location Always Usage Description
Privacy - Location When In Use Usage Description

Related

Getting Positioning Error in here sdk flutter initially

I'm using here sdk in my flutter application to get map features in my app. When I'm trying to get user's current location then initially for some time, it is showing me this error which is not a good impression for my application.
It is giving me this error until it finds the location which is represented as this indicator
I've added all the required permissions for that
but still its giving the location after some delays which is not what I want....
I guess its related to refresh token, which is internally managed by HERE SDK, I'm not able to explicitly add that token , I've provided the consent permission but the token thing is delaying its update, maybe I'm wrong.
These are some code snippets,,,,
This is a gist of navigation example -
https://gist.github.com/alemantrix-settyl/5bff0bb621dd53b8309605dba9613f0c
This is calculating the route and starting the navigation
enter image description here
To get more information about the code, visit this repo:
https://github.com/heremaps/here-sdk-examples/tree/master/examples/latest/navigate/flutter/navigation_app

Facebook Inbox Custom Label API unable to search for labels I set

I am trying to programmatically assign inbox labels to users so that humans can follow up with them. I am assigning the labels through the GET /CUSTOM_LABEL_ID/label endpoint and getting back success:true. When I look at the user on the left in the messages folder, I see the label assigned but when I click on them I don't see it in the list of labels on the right. When I try to search inbox with that label as a filter, the user doesn't appear. In addition, if I create a new label through the POST /custom_labels endpoint, I don't see it under Manage Labels even though the response says the call was successful. Has anyone else run into this issue?
This is an open bug https://developers.facebook.com/support/bugs/598221887682301/
Probably originally was 'works as designed' but now that the broadcast API is deprecated they will repurpose / enable / enhance

Location service permission popup is not shown in iOS 9.1

I am facing problem with iOS 9.1 when my app is installed for the first time user is prompted for location service permission, but alert view gets hidden instantly as soon as it is shown. Therefore app do not detect a user's location. Although allowing app to access location from setting.app works fine. It was working fine with iOS 9.0.2
The root cause for issue may be presenting a view or viewcontroller over popup.
Try to call location service permission after 1-2 second delay there may be some issue of animation that is hidding alert view.
Problem may be happening if you are asking for location service permission from appdelegate or when application is just launched else it will work fine.
Now add location permission in plist file
if not add permission in plist then permission popup is not show
Add below permission in plist
1.Privacy - Location When In Use Usage Description
2.Privacy - Location Always Usage Description
I had issue with the same . I got it resolved but adding
Privacy - Location Always and When In Use Usage Description ,
Privacy - Location When In Use Usage Description
to my plist and also
You must call requestWhenInUseAuthorization() method prior to using location services.

Google analytics email open tracking with measurement protocol

we tried to track email opens with google analytics and measurement protocol. We exactly followed instructions given in http://www.lunametrics.com/blog/2013/06/17/email-tracking-google-analytics/ and http://dyn.com/blog/tracking-email-opens-via-google-analytics/
The problem is that every email open is counted also as a session which is not correct. Can you give me any advice how we can track opens without recording sessions? Thank you
Every hit in GA always starts a session, so this is not possible. If you don't want it to appear in your normal profile, try setting a pageview with prefix so you can filter them out into a seperate View.
e.g.
/virtual/email-open
Then set up your filters.
Session begins with any interaction. Don't be sad, it is correct.
You can extend your data with some identifier like virtualpagname or whatever and than make segment or filter.
dp=mypage.com
dh=/emailing
dt=Email Gate
You can either use datasource parameter:
ds=email
https://developers.google.com/analytics/devguides/collection/analyticsjs/field-reference#dataSource

can i show gps location pop message again?

i have application in this application i want to display sorting data using user's location.
but first time when i open application it ask me for allow or not allow for location.
i press don't allow. this never ask me again for location how can i rest this setting.
ya you can do this by going on this way
settings >> general >> reset >>Reset Location warnings
by this doing it will ask again same warning . may be this help you
First option : Then you had to use a button in your app where user can update his location again by pressing the button.
Second Option : Call update location method after some time interval to get the location of the user.