microg / GmsCore

Free implementation of Play Services
https://microg.org
Apache License 2.0
8.55k stars 1.72k forks source link

[org.paris2024.ticketapp] Can't receive tickets for Paris 2024 Olympics #2464

Open gahbla opened 3 months ago

gahbla commented 3 months ago

Affected app Name: Paris 2024 Tickets Package id: org.paris2024.ticketapp

Describe the bug We bought tickets for the 2024 Olympics in Paris for my family. Everyone needs to personalise their own tickets with their name, meaning that the one person who bought all the tickets must send everyone their respective ticket. This ticket transfer works fine if the recipient has the Google Play Services installed, but fails with MicroG.

To Reproduce Steps to reproduce the behavior:

  1. Buy tickets for the Paris 2024 Olympics 😅 🤪
  2. Ticket buyer taps “Transfer ticket” in the Paris 2024 Tickets app on their stock Android phone (with Google Play Services installed) and sends the link to the recipient.
  3. Ticket recipient opens the link on their ungoogled phone (with MicroG installed). The default browser is opened.
  4. An overlay of another app appears showing a loading spinner. When swiping up on Android's bottom navigation bar (revealing the “currently opened apps” view), then MicroG's logo is shown as the app's icon, i.e. MicroG is displaying the loading overlay.
  5. Then, Android switches to another app (presumably Paris 2024 Tickets).
  6. Finally, the browser is opened again, the loading spinner appears again, the app is opened again.
  7. This cycle continues indefinitely, never finishing.

Expected behavior Just like on stock Android with Google Play Services, the link should open the Paris 2024 Tickets app should be opened to let me personalise my ticket.

Screenshots

Unfortunately, I did not think of making screenshots or screen recordings.

System Android Version: 13 Custom ROM: /e/OS 2.2-t-20240715417772-stable-FP3

microG microG Core version: 0.3.2.240913-22 (43f9740) microG Self-Check results: all ticked

Additional context

Workaround

  1. Grab a stock Android phone with the Google Play Services installed, and install the Paris 2024 Tickets app.
  2. Log in with your account (or create a new one).
  3. Initiate the ticket transfer process on the ticket buyer's phone.
  4. Open the link and complete the transfer. Your tickets are now associated with your account.
  5. You can log out and uninstall the app on the stock Android phone.
  6. Log in on your MicroG phone; your tickets now show up in the Paris 2024 Tickets app.
LeVraiRoiDHyrule commented 3 months ago

Hi, I got it working but I didn't have the same issue as you. My issue was that the link was correctly opening the Ticket app, but nothing happened. The ticket was not added to the app. What I had to do was to use a chromium browser like Vivaldi (it apparently has issues with Firefox), and I had to spam the link until I have an error message saying that microG crashed. At that moment, the ticket 2024 app was retrieving the ticket and I can now have them. I don't have a loop like you have.

I am still unsure if the QR code will correctly appear at the correct moment, I hope it will work correctly.

When was your event? Did the QR code properly display when it was supposed to?

gahbla commented 3 months ago

use a chromium browser

I tried it with

I even made sure to set each app as the default browser. 🤷

I had to spam the link

Ah, I specifically didn't want to overwhelm the app. 😅 But on the other (stock Samsung) devices, multiple attempts were also necessary.

When was your event? Did the QR code properly display when it was supposed to?

It will take place next week, I'll post an update :)

LeVraiRoiDHyrule commented 3 months ago

Mine will be Sunday, I really hope it will display as expected. But one person in my group has a phone with stock Play Services. You say the tickets are linked to an account ? That way maybe if we have issues we will be able to log in on his phone and enter that way. I'll keep you updated too.

To be more specific about how I succeeded to get the tickets, here is what I did:

  1. Install Vivaldi
  2. Set it as default Android browser
  3. Set Ticket2024 app to open all the links it supports
  4. Paste the link I received in Vivaldi (I didn't went directly from my email app to the Ticket app, I pasted the link in Vivaldi)
  5. Then I spammed the link to open the app on the web page. I needed multiple trials
  6. At a moment, it opens the Ticket app and display a loading circle, and on top of that an error saying that MicroG crashed. The ticket app then opens the window to retrieve the ticket.

As it works when MicroG crashes, I wonder if temporarly disabling MicroG would work. If it works, it is easier and more reproductible.

It worked the same on 2 different phones both on MicroG, but with different Android versions. So I think it could work with you too.

gahbla commented 3 months ago

You say the tickets are linked to an account ? That way maybe if we have issues we will be able to log in on his phone and enter that way.

Yes, exactly. That's likely also what anyone does whose phone's battery is empty or who have lost their phone, so staff should hopefully accept it.

As it works when MicroG crashes, I wonder if temporarly disabling MicroG would work.

Sounds plausible. Unfortunately, if MicroG is pre-installed (like on /e/OS or Calyx), I don't think you can disable it. At least, I haven't seen a button or switch for that. 🤔

fynngodau commented 3 months ago

Unfortunately, if MicroG is pre-installed (like on /e/OS or Calyx), I don't think you can disable it. At least, I haven't seen a button or switch for that.

You should be able to disable the microG app through the system settings on both /e/OS as well as Calyx. Go to Apps in the settings app and find microG Services under See all apps.

gahbla commented 2 months ago

The Ticket app does indeed display a QR code now for the beach volleyball tournament tomorrow that I'm going to attend, so I'm fairly hopeful that it will work. :)

LeVraiRoiDHyrule commented 2 months ago

The Ticket app does indeed display a QR code now for the beach volleyball tournament tomorrow that I'm going to attend, so I'm fairly hopeful that it will work. :)

It worked perfectly for me on Sunday! Once the ticket is loaded it all work. Enjoy your event!

Note : I even succeeded to use the subway tickets on my phone using IDF Mobilités. I've had feedback that it didn't work for some people but once root is properly hidden with Shamiko, it worked too.

gahbla commented 2 months ago

It worked for me fine too! And the beach volleyball was really fun, fantastic atmosphere 😎