Skip to content

feat: android widgets#11098

Closed
triniwiz wants to merge 1 commit intomainfrom
feat/android-widgets
Closed

feat: android widgets#11098
triniwiz wants to merge 1 commit intomainfrom
feat/android-widgets

Conversation

@triniwiz
Copy link
Member

feat: RemoteView IPC views

feat: RemoteView IPC views
@nx-cloud
Copy link

nx-cloud bot commented Feb 20, 2026

View your CI Pipeline Execution ↗ for commit f0f0656

Command Status Duration Result
nx test apps-automated -c=android ✅ Succeeded 5m 13s View ↗
nx run-many --target=test --configuration=ci --... ✅ Succeeded <1s View ↗

☁️ Nx Cloud last updated this comment at 2026-02-20 08:51:58 UTC

@farfromrefug
Copy link
Collaborator

this should be in the core. the api is very limited and wont fit all use cases.
this should be in a plugin where you can take time to define a shared and nice api for ios/android.
also it seems the best approach to write android widgets is now glance and not remote views which are very limited

@triniwiz
Copy link
Member Author

Glance has the same restrictions @farfromrefug .

Key Point: Glance provides a modern approach to build app widgets using Compose, but is restricted by the limitations of AppWidgets and RemoteViews. Therefore, Glance uses different composables from the Jetpack Compose UI.
Create an app widget with Glance

@farfromrefug
Copy link
Collaborator

@triniwiz Yes it does but glance APIs are moving really fast and allow much more complex UIs using compose.
But the main point remains, this should not be in core, it should be a plugin

@triniwiz
Copy link
Member Author

You know it's still limited to the same RemoteViews API ? I've created a similar reusable wrapper to make building layouts easier also with Glance you'll need compose

@farfromrefug
Copy link
Collaborator

@triniwiz Well not for the UI design part. RemoteViews layout is using xml which makes things very limited, especially when working with theme/size ...
But again the main point is not about glance/RemoteViews. The main point is that it should not be in core (which is bloated enough right now). It should be a plugin which can also allow the API to mature much faster ( easier to make breaking changes in a beta plugin) to come to something which fits everyone's needs.

@NathanWalker
Copy link
Contributor

Agree on plugin for this part (ios didn't need core changes for example to enable). We could introduce @nativescript/widgets which can help bring together all useful widget work.

@triniwiz triniwiz closed this Feb 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

Comments