Posts

Showing posts with the label widget

Yii2 machour NotificationsWidget class not found

Image
Clash Royale CLAN TAG #URR8PPP Yii2 machour NotificationsWidget class not found We are trying to run "machour" notification widget in Yii2-Advanced template. We could successfully install the extension through composer. We are getting the following class error: Class 'NotificationsWidget' not found. The above problem is still existing Yii2 notification widget class not found. We are calling following code in layouts folder: use commonmodelsNotification; <?php NotificationsWidget::widget([ 'theme' => NotificationsWidget::THEME_GROWL, 'clientOptions' => [ 'location' => 'br', ], 'counters' => [ '.notifications-header-count', '.notifications-icon-count' ], 'markAllSeenSelector' => '#notification-seen-all', 'listSelector' => '#notifications', ]); ?> And this is...

Android App Widget manually update does not work after it is updated when the app is installed

Image
Clash Royale CLAN TAG #URR8PPP Android App Widget manually update does not work after it is updated when the app is installed I have the following code executed when a fragment is created. However, after the widget is updated once, it cannot be updated again. AppWidgetManager appWidgetManager = AppWidgetManager.getInstance(getContext()); RemoteViews remoteViews = new RemoteViews(getContext().getPackageName(), R.layout.recipe_appwidget); ComponentName thisWidget = new ComponentName(getContext(), RecipeAppWidgetProvider.class); Intent intent = new Intent(getContext(), RecipeWidgetService.class); intent.setData(Uri.parse(intent.toUri(Intent.URI_INTENT_SCHEME))); remoteViews.setRemoteAdapter(R.id.listViewWidget, intent); remoteViews.setEmptyView(R.id.listViewWidget, R.id.empty_view); int appWidgetIds = appWidgetManager.getAppWidgetIds(thisWidget); appWidgetManager...