Another can't login case...

270 views
Skip to first unread message

Kerem Kirkpinar

unread,
Dec 17, 2021, 9:39:25 AM12/17/21
to My Leaf; a third party NissanConnect app
Hi, 

I have Nissan Connect EV app running and able to login. I am not able to login to My Leaf with the same credentials. I live in the US and am choosing World. Is there anything I can try to fix this situation before giving up on this app? I like what I'm seeing on the screenshots on app store and excited about this simplified interface but so far have not been able to use it at all. 

Appreciate any help anyone might be able to provide. 

Thank you

Tobias Westergaard Kjeldsen

unread,
Jan 1, 2022, 4:21:26 PM1/1/22
to My Leaf; a third party NissanConnect app
Hello,

Sorry for the late answer!

Depending on when your vehicle was produced etc. you either need to pick World or USA as your region.

Will Adler

unread,
Jan 2, 2022, 6:15:35 PM1/2/22
to My Leaf; a third party NissanConnect app
I'm in the same boat. I've tried using either World or USA and am unable to login, even though I have no problem using the official app. I can read the debug log in the iOS app. The copy function doesn't seem to work, but it appears to be a series of "401: Unauthorized" errors.

Jason Groutwells

unread,
Jan 2, 2022, 6:30:36 PM1/2/22
to Will Adler, My Leaf, a third party NissanConnect app
I'm not having any trouble with the app. It updates my range/SOC properly, but I don't have any trip data to load for the day/month yet. I log into USA to connect with my 2019 Leaf.

--
You received this message because you are subscribed to the Google Groups "My Leaf; a third party NissanConnect app" group.
To unsubscribe from this group and stop receiving emails from it, send an email to my-leaf+u...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/my-leaf/2b5a20af-2a3f-4fd8-826c-4014d6e36153n%40googlegroups.com.

Tobias Westergaard Kjeldsen

unread,
Jan 3, 2022, 5:22:02 AM1/3/22
to My Leaf; a third party NissanConnect app
I cannot reproduce your problems with My Leaf on Android. I will check the latest iOS release and see if this issue is isolated to iOS.

One important thing for North American users; you cannot have the official configured alongside My Leaf. My Leaf and the official app will invalidate (fight) each others authentication tokens. So please uninstall the official app or remove your account from the official app before using My Leaf!

Kerem Kirkpinar

unread,
Jan 3, 2022, 1:52:39 PM1/3/22
to My Leaf; a third party NissanConnect app
"One important thing for North American users; you cannot have the official configured alongside My Leaf. My Leaf and the official app will invalidate (fight) each others authentication tokens. So please uninstall the official app or remove your account from the official app before using My Leaf!"

Aha! This must be the reason why I have never been able to login to My Leaf. Since the official app features are not covered 1:1 in My Leaf removing it from phone (IOS) is not a desirable option. Is there no way to overcome this conflict in a future release? Thanks for trying. 

PS. You may want to clarify this conflict & requirement on the Apple Appstore page so that you can avoid negative reviews by unhappy customers. I'm not one of them but I see a number of people have chosen to leave upset reviews. 

Regards,
Kerem

Will Adler

unread,
Jan 3, 2022, 5:58:03 PM1/3/22
to My Leaf; a third party NissanConnect app
Hm, logging out of the official app doesn't seem to help.

If relevant, I am able to use leaf2mqtt fine, which I think might connect via the same underlying library?

Tobias Westergaard Kjeldsen

unread,
Jan 4, 2022, 5:22:06 AM1/4/22
to My Leaf; a third party NissanConnect app
Are you located in Canada or US?

Tobias Westergaard Kjeldsen

unread,
Jan 4, 2022, 5:36:41 AM1/4/22
to My Leaf; a third party NissanConnect app
I have discovered the issue! Nissan's North America NissanConnect services has chosen to block the user-agent used on My Leaf on iOS. This is only to break My Leaf and third party clients. I am getting quite frustrated by this behaviour from Nissan North America. They are only doing this to stop third party clients.

I will release a new version on iOS that fixes this issue. I cannot guarantee how long it will work before Nissan breaks in again.

Kerem San

unread,
Jan 4, 2022, 9:37:32 AM1/4/22
to Tobias Westergaard Kjeldsen, My Leaf, a third party NissanConnect app
Hi Tobias, 

I'm in the US. Thanks for working on this. 

Regards,
Kerem

You received this message because you are subscribed to a topic in the Google Groups "My Leaf; a third party NissanConnect app" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/my-leaf/pO9zhm_17uY/unsubscribe.
To unsubscribe from this group and all its topics, send an email to my-leaf+u...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/my-leaf/eb369089-bb97-4588-a546-76c6e55f18cfn%40googlegroups.com.

Kerem San

unread,
Jan 4, 2022, 9:40:11 AM1/4/22
to Tobias Westergaard Kjeldsen, My Leaf, a third party NissanConnect app
Hi Tobias, 

Great news! I hope your new workaround will be a long lived one. It is very frustrating indeed that Nissan would be trying to block access in this manner. If there is any lobbying possibility I would be happy to write in an email to the "powers that be" at Nissan. Please share here if there is a person / group email at Nissan we could all write as customers and request support etc. 

Thanks for your continued efforts. 

Regards,
Kerem

You received this message because you are subscribed to a topic in the Google Groups "My Leaf; a third party NissanConnect app" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/my-leaf/pO9zhm_17uY/unsubscribe.
To unsubscribe from this group and all its topics, send an email to my-leaf+u...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/my-leaf/7a37b089-bdc6-4bd4-9c5f-3688662b4d99n%40googlegroups.com.

Tobias Westergaard Kjeldsen

unread,
Jan 12, 2022, 11:47:54 AM1/12/22
to My Leaf; a third party NissanConnect app
I think the best solution is to write; nissanown...@nissan-usa.com

If enough people voice their frustrations regarding third party clients being blocked I guess Nissan has to react in some sense.

Please share this email and message with other communities!

Thanks!

Will Adler

unread,
Jan 25, 2022, 1:15:16 PM1/25/22
to My Leaf; a third party NissanConnect app
Login access appears to be broken again for US users, starting yesterday morning for me—both through My Leaf and through leaf2mqtt. I just wrote Nissan the following, and encourage other affected users here to do the same:


To whom it may concern,

I am a Leaf owner who has an interest in accessing NissanConnect via third-party clients. It appears that Nissan keeps attempting to block third-party access, which is very frustrating. I just want to register my displeasure with Nissan for trying to block this legitimate use of NissanConnect, and urge it to create an open API for Nissan drivers.

Thank you,
[your name]

Tobias Westergaard Kjeldsen

unread,
Jan 26, 2022, 2:10:22 PM1/26/22
to My Leaf; a third party NissanConnect app
Hello Will,

I think I have a solution for this. I just have one big problem; the account I used for testing is not working any longer sadly. This makes it very hard to do anything really!

Are anyone willing to lend me their account for me doing testing and maintainance? If anyone is willing to do this I'd really appreciate it! Please can send me an email!

Tobias Westergaard Kjeldsen

unread,
Jan 27, 2022, 5:56:20 AM1/27/22
to My Leaf; a third party NissanConnect app
I have investigated the issue and Nissan has introduced a new way getting secrets for the API using Google Firebase. This makes it almost impossible to keep supporting North American vehicles as Nissan can update the secrets stored inside Google Firebase on-the-fly so to speak. These secrets cannot be accessed outside the offical app. Because of this Nissan will be able to "disable or break" My Leaf and other third part clients. So using the new secret will only temporarily make My Leaf work again until Nissan changes it. They can do this without updating the official app.

So sadly this is basically the last straw for My Leaf supporting North American vehicles. I can update the secret but Nissan can update it on-the-fly and break My Leaf again. This can go on forever so to speak.

I encourage people to write to Nissan and express their anger. This does not only break My Leaf but also other integrations people are using.

I will release a new version of My Leaf with the new secret but I suspect Nissan will update this secret fairly fast and break My Leaf once again.

yp87

unread,
Jan 28, 2022, 1:01:50 PM1/28/22
to My Leaf; a third party NissanConnect app
Hello Tobias,

This container uses your libraries to support the 3 Nissan leaf apis. You are doing a wonderful work by the way!

I live in Canada and uses the NissanConnectNA myself.
If you provide me with instructions on how to get the new keys, I am willing to update your library when they changes.

Thank you!

Tobias Westergaard Kjeldsen

unread,
Jan 28, 2022, 1:25:55 PM1/28/22
to My Leaf; a third party NissanConnect app
The secret for the User-Agent-Key is now controlled in Firebase by Nissan. They can change this key on-the-fly without updating the app. This means that this key can be updated by Nissan very easily. Nissan has changed this key just recently so as soon as we use this new key Nissan will change it.

It makes no sense to use the new key because Nissan will invalidate it on-the-fly shortly after.

There is sadly no immediate solution to this right now.

yp87

unread,
Jan 28, 2022, 5:51:52 PM1/28/22
to My Leaf; a third party NissanConnect app
I understand that, but depending on the way you get the new key (MitM?) I could automate it and then we publish it as a service and modify the library to fetch it automatically. Once this is done, there is not much they can do afterwards. I am willing to spend some time on this, I would just like to have a head start and skip the research on how to get the keys from the app. 

Tobias Westergaard Kjeldsen

unread,
Feb 4, 2022, 3:57:31 AM2/4/22
to My Leaf; a third party NissanConnect app
I have released 20.0.21 on Google Play and App Store. North American vehicles are working again with My Leaf!

Let's see how long it will last this time!

Reply all
Reply to author
Forward
Message has been deleted
0 new messages