05:44 se7h joined #geoloqi
08:13 caseorganic joined #geoloqi
08:19 se7h joined #geoloqi
08:45 se7h joined #geoloqi
09:04 se7h joined #geoloqi
09:12 caseorganic joined #geoloqi
09:31 kenichi joined #geoloqi
09:59 kyledrake joined #geoloqi
10:56 patrickarlt joined #geoloqi
11:28 <Loqi> http://twitter.com/caseorganic :: @ScienceOnDrupal Fantastic! Hope @loqisaur is a good listener!
11:40 caseorganic joined #geoloqi
11:45 caseorganic joined #geoloqi
11:56 merrihew joined #geoloqi
11:56 <merrihew> Is anyone from Geoloqi on the channel?
11:58 <patrickarlt> im here what up
11:58 <merrihew> I'm getting a lot of website errors while logged in as a developer, on pages like: http://developers.geoloqi.com/account/plans (Internal Server Error) and http://developers.geoloqi.com/pricing (Darn, there has been an error! We will look into it.)
11:59 <merrihew> But I'm a new signup, so i am generally trying to figure out how to get anonymous devices to register to receive APNS
12:00 <merrihew> I have added my P12's and am seeing users come onto the system, but they all have blank apns_dev arrays
12:03 <merrihew> So I'm assuming I'm doing something wrong, but I'm not sure if it has anything to do with (1) my account needing to be at a higher level, above free, or (2) an issue internally.
12:10 <aaronpk> merrihew: thanks, just saw the error internally
12:14 <aaronpk> merrihew: try again, should be fixed
12:16 <aaronpk> also check out our push notification guide http://developers.geoloqi.com/ios/push-notifications
12:16 <merrihew> Great, page is working now for pricing, thanks.
12:16 <merrihew> I went through the whole page... now I need to get things going on the app side
12:17 <merrihew> I'm gathering this is the place to start? http://developers.geoloqi.com/api/account/set_apn_token
12:17 <aaronpk> the SDK should handle all of that automatically assuming the apple certificates are configured properly
12:17 <aaronpk> ok not completely automatically, one sec
12:17 <merrihew> Ahh, ok.
12:18 <aaronpk> are you adding the SDK to an existing iPhone app?
12:18 <merrihew> yes
12:18 <aaronpk> on the getting started page, check out this half way down http://developers.geoloqi.com/ios/getting-started "Adding the SDK to en Existing Project"
12:19 <merrihew> So should placing " [LQSession registerDeviceToken:deviceToken withMode:LQPushNotificationModeDev];" within didRegisterForRemoteNotificationsWithDeviceToken should be sufficient to get setup on the APNS servers?
12:19 <aaronpk> yep, and you'll also need to get the app to request push permission from the user
12:20 <merrihew> how do i trigger that?
12:20 kenichi joined #geoloqi
12:20 <aaronpk> [LQSession registerForPushNotificationsWithCallback:NULL]
12:21 <merrihew> drop that in didFinishLaunchingWithOptions?
12:21 <aaronpk> yes, or wherever else you want to request permission
12:22 <aaronpk> usually I like to do it after the user registers for an account, or after they take some action in the app that they will expect to get a push
12:22 <aaronpk> for example, the first time someone leaves a geonote, it will prompt for permission
12:22 <merrihew> Thoughts on error: "Failed to register for push notifications: Error Domain=NSCocoaErrorDomain Code=3000 "no valid 'aps-environment' entitlement string found for application""
12:23 <aaronpk> that usually means the certificates aren't set up properly
12:23 <merrihew> Do I need to bring my APNS cert into Xcode somehow?
12:23 <aaronpk> yes
12:23 <aaronpk> and also make sure you made a unique app ID in apple for this
12:23 <merrihew> Sorry, I realize these are probably very obvious questions
12:23 <aaronpk> nah the apple push stuff is really confusing
12:24 <merrihew> Is there a specific point in the build settings i reference the apns certs?
12:24 nohorse joined #geoloqi
12:25 <aaronpk> ah yes, sorry that's not in the push setup page
12:28 <aaronpk> you'll want to select it from the project's build settings screen: http://farm8.staticflickr.com/7254/7825717248_33b22d3535_o.png
12:29 <merrihew> Oh, I see what I'm missing. My APNS is tied to my provisioning profile in general
12:29 <merrihew> I thought it was a separate part of the build process
12:31 <merrihew> Boom, I got it!
12:31 <aaronpk> great!
12:32 <merrihew> One final question, you've been a huge help. We're trying to use the passive (low battery) mode, but to be clear, even in this mode the full purple arrow will still appear in the status bar, correct?
12:33 <aaronpk> yes, although sometimes you might see the outlined one as well
12:33 <merrihew> If we're just trying to use geofencing, does seeing the filled in version mean we have something setup incorrectly?
12:34 <aaronpk> no, it will switch between the two in normal operation
13:00 kenichi joined #geoloqi
15:08 <Loqi> http://twitter.com/ninaboel :: @olaberg när det gäller socialt och geopositionerat har hon gjort geoloqi.
15:12 se7h joined #geoloqi
15:33 <merrihew> aaronpk Once a user has been registered with APNS, is there a way to delete them from the service to be able to re-register them via Geoloqi? I was able to get my testing phone setup, but I have been working through some things on the API and erased the old user account for that phone... but cannot get APNS to be setup on the device again.
15:34 <aaronpk> you shouldn't be having a problem registering APNS a second time on a different account
15:35 <Loqi> fo sho
15:35 <aaronpk> but if you need to, you can delete a user account using http://developers.geoloqi.com/api/user/delete/:id
15:35 <aaronpk> however there is probably something else wrong if it's not registering for push a second time
15:36 <merrihew> I did successfully delete them with the /delete/:id
15:37 <merrihew> Could there be a lag, etc?
15:37 <aaronpk> possibly
15:37 <aaronpk> but if you delete the app from the phone and launch it again it should just start over with a new account
15:40 <merrihew> I cleared out all users, deleted the app, reinstalled via Xcode, it prompted for GPS access, but is not prompting for Push, and I have nothing listed for the user's apns_dev array when I list users from the API
15:41 <aaronpk> ah, there is a thing with the iPhone where it won't re-prompt for push even after deleting an app
15:41 <aaronpk> but it will still return a push token immediately if one is requested
15:41 <aaronpk> just won't show the prompt
15:41 <merrihew> and without reprompting, will it not be able to reauthenticate with the push server?
15:42 <aaronpk> it will still reauth, it just won't show the prompt
15:42 <aaronpk> "The first time a push-enabled app registers for push notifications, iOS asks the user if they wish to receive notifications for that app. Once the user has responded to this alert it is not presented again unless the device is restored or the app has been uninstalled for at least a day."
15:44 <aaronpk> but if you run [LQSession registerForPushNotificationsWithCallback:NULL]
15:44 <aaronpk> again, it should just immediately return a token
15:46 <merrihew> This is being run at startup, and I still don't see a registered device when i query the user/list
15:47 <aaronpk> ok, if you include a callback like this, do you see the success method? https://gist.github.com/3408798
15:47 <aaronpk> message*
15:51 <merrihew> Haha, well I get nothing in the log but it is now strangely making the proper request to set_apn_token
15:51 <merrihew> So I'm getting a new apns_dev id, which is the desired result
15:51 <aaronpk> well that's good! I think
15:52 <merrihew> Well, a lot better than fooling with the device clock!
15:52 <aaronpk> heh, yea
15:52 <merrihew> APNS is such a weird system
16:41 patrickarlt joined #geoloqi
16:58 <Loqi> http://twitter.com/kenichi_pdx :: ladybugs v. aphids 2012 at @geoloqi HQ!
18:18 se7h joined #geoloqi
18:23 patrickarlt joined #geoloqi
18:57 kyledrake joined #geoloqi
19:10 caseorganic joined #geoloqi
20:25 rknLA joined #geoloqi
22:49 kyledrake joined #geoloqi
23:06 kyledrak_ joined #geoloqi