Comment by ~gedw99 on ~eliasnaur/gio
go version go version go1.21.0 darwin/amd64
gio version 2.76.4
Ticket created by ~gedw99 on ~eliasnaur/gio
https://github.com/gioui/gio-example/tree/main/explorer
wasm fails at runtime.
Does not show image after user selects it ( safari and chrome )
no errors in console.
-- Location: Berlin ( GMT+1) Email: gedw99@gmail.com Mobile: +4915231894553 ( linked to signal. telegram, facetime, whatsapp ) Telegram: http://t.me/gedw99 Signal: https://signal.me/#p/+4915231894553 Booking: https://www.cal.com/gedw99
Comment by ~gedw99 on ~eliasnaur/gio
sounds like your way ahead of me - I was learning myself, as i am working on Notifications with that nfty project.
will defer this one to the maintainers as i dont know enough about the best decision for gio.
Comment by ~gedw99 on ~eliasnaur/gio
nfty golang server docs also document the Notification Profile flow: https://github.com/binwiederhier/ntfy/blob/main/docs/develop.md#apple-setup
"Download the newly created key (should have a file name similar to AuthKey_ZZZZZZ.p8, where ZZZZZZ is the Key ID)"
Comment by ~gedw99 on ~eliasnaur/gio
also did you do the p8 provisioning ?
Described here: https://www.braze.com/docs/developer_guide/platform_integration_guides/swift/push_notifications/integration/?tab=.p8%20file%20(recommended)
and
Comment by ~gedw99 on ~eliasnaur/gio
Hey
The link you have is broken. I this is the right one i guess: https://developer.apple.com/documentation/usernotifications/unauthorizationoptions/unauthorizationoptioncriticalalert
Did you sign the App as part of your build ? https://github.com/gioui/gio-cmd/blob/main/gogio/macosbuild.go#L207C22-L207C33
I did find this:https://lessons.livecode.com/m/4071/l/1293515-entitlements-for-signed-and-notarized-apps#include-the-entitlements-file-when-you-sign-your-app, so maybe we need to modify the GIOUI build cmd to sign the entitlements. Have you checked ?
Also, Plist entitlements for things like Notifications, can be generated thanks the same work being done for DeepLink: https://github.com/gioui/gio-cmd/pull/9
For example on MAC: https://github.com/gioui/gio-cmd/pull/9/files#diff-3cdb5e0038190e34780420eb1c686e074f46f2662163ca7a0b97d046e4d856c4
So we can generate the Plist entitlements for Notifications to match: https://github.com/gioui/gio-example/blob/main/notify/example.app/Contents/Info.plist, rather than hand code per project. This will make things more automated and less error prone.
Once Deeplink PR goes in, the same build automation for Notifications can be done.
BTW there is a golang Notifications sending system here: https://github.com/binwiederhier/ntfy, that is kind os useful It can send notifications, using various means, and the docs are a good resource too: https://docs.ntfy.sh/publish/
Comment by ~gedw99 on ~eliasnaur/gio
I also hit this with the new wasip1/wasm target.
I am using gotip mostly.
so would be good if this gets fixed...
Ticket created by ~gedw99 on ~eliasnaur/gio
Tabbing is a good way to use the keyboard to navigate the GUI.
I was workng on the https://github.com/gioui/gio-example/tree/main/component to add sub routing and noticed that the tabbing has an issue on web. It works perfectly on desktop.
On web when you click tab it moves focus to the URL bar and then the next tab target ( a form element or button ). As you tab more it will repeat this alternating cycle..
Comment by ~gedw99 on ~eliasnaur/gio
apple@x-MacBook-Pro-2 gio-example % go-mod-upgrade • Using directory dir=/Users/apple/workspace/go/src/github.com/_jumk/gio-example ? Choose which modules to update [Use arrows to move, space to select, to all, to none, type to filter]
[ ] gioui.org 0.0.0-20220808141521-a55065af9c1e -> 0.0.0-20230611141527-3bb6cca15710
[ ] gioui.org/cmd 0.0.0-20211103131231-1d0769ae89a5 -> 0.0.0-20230502182008-0a86898b4184
[ ] gioui.org/x 0.0.0-20220812201728-6e5ccb802ed1 -> 0.0.0-20230609201311-f4f65e94fa90
[ ] github.com/go-gl/gl 0.0.0-20210315015930-ae072cafe09d -> 0.0.0-20211210172815-726fda9656d6
[ ] github.com/go-gl/glfw/v3.3/glfw 0.0.0-20210311203641-62640a716d48 -> 0.0.0-20221017161538-93cebf72946b
[ ] github.com/inkeliz/giohyperlink 0.0.0-20211125170138-7c983051483f -> 0.0.0-20220903215451-2ac5d54abdce
[ ] golang.org/x/exp 0.0.0-20210722180016-6781d3edade3 -> 0.0.0-20230522175609-2e198f4a06a1
[ ] golang.org/x/image 0.0.0-20210628002857-a66eb6448b8d -> 0.7.0
[ ] golang.org/x/oauth2 0.0.0-20210126194326-f9ce19ea3013 -> 0.8.0
[ ] gonum.org/v1/gonum 0.8.2 -> 0.13.0
Comment by ~gedw99 on ~eliasnaur/gio
Chris,
i was offering to go mod upgrade the examples repo and PR it in via github .. just have some time for once.
apple@x-MacBook-Pro-2 gio-example % go-mod-upgrade • Using directory dir=/Users/apple/workspace/go/src/github.com/_jumk/gio-example ? Choose which modules to update [Use arrows to move, space to select, to all, to none, type to filter]
[ ] gioui.org 0.0.0-20220808141521-a55065af9c1e -> 0.0.0-20230611141527-3bb6cca15710 [ ] gioui.org/cmd 0.0.0-20211103131231-1d0769ae89a5 -> 0.0.0-20230502182008-0a86898b4184 [ ] gioui.org/x 0.0.0-20220812201728-6e5ccb802ed1 -> 0.0.0-20230609201311-f4f65e94fa90 [ ] github.com/go-gl/gl 0.0.0-20210315015930-ae072cafe09d -> 0.0.0-20211210172815-726fda9656d6 [ ] github.com/go-gl/glfw/v3.3/glfw 0.0.0-20210311203641-62640a716d48 -> 0.0.0-20221017161538-93cebf72946b [ ] github.com/inkeliz/giohyperlink 0.0.0-20211125170138-7c983051483f -> 0.0.0-20220903215451-2ac5d54abdce [ ] golang.org/x/exp 0.0.0-20210722180016-6781d3edade3 -> 0.0.0-20230522175609-2e198f4a06a1 [ ] golang.org/x/image 0.0.0-20210628002857-a66eb6448b8d -> 0.7.0 [ ] golang.org/x/oauth2 0.0.0-20210126194326-f9ce19ea3013 -> 0.8.0 [ ] gonum.org/v1/gonum 0.8.2 -> 0.13.0