首页 > 解决方案 > 如何在 Xamarin Android 上向用户发送信息

问题描述

假设我有一个用 Xamarin 编写的 Android 应用程序。有没有办法让我(即在 Play Store 上发布该应用程序的开发人员)通过发送一些自动存储在本地数据库中的信息与我的应用程序用户进行交互?特别是,我想向用户发送一个新代码,该代码将基于一些先前编码的逻辑来改变应用程序的行为。例如,假设加载时应用程序读取 SQLite DB 上的表并查看最新记录。假设第一次安装和启动应用程序时,第一条记录的值等于 1。应用程序每次启动应用程序时都会读取该表,并根据最近的记录更改应用程序的某些行为。例如,在开始时(即最近的记录等于 1 时)我的主要活动的背景颜色是白色。

有没有办法做到这一点?

标签: androidxamarinxamarin.formspush-notificationxamarin.android

解决方案


Yes you can.

First, when starting the application, you send a request to the server to synchronize your local database, so you will get always the latest values.

After that, you can load the views according to the information that you have, and apply your logic.


推荐阅读