When my activity is running, I don't want return in home screen when I click on Home button.
I find answers for android but I do not manage to translate code to mono.
Can you help me please ?
Disabling the home button is an anti-pattern and generally frowned upon in Android. You are not able to override the behavior of the Home button itself in ICS and up either. However if you are developing a Kiosk mode app or a Home launcher, it is possible to work it around.
You will need to tell Android that your application is a Launcher/Home application. Beyond creating a custom home app, there is no way to intercept the HOME button except through firmware modifications.
Related
I am using Firebase Dynamic Link in my app and am seeing issues when they are opened from iOS Safari as an URL.
-Expected behavior: The link leads to the app preview page, where the user can click on the link that will redirect to the app.
-Actual behavior: The link tries to open the preview page initially but loads the website even when the app is installed.
-The issue happens for both actual devices and simulators.
-The link works fine when opened from iOS Chrome as an URL, other iOS apps, and for all scenarios in Android devices/emulators.
I did my research but could find the exact same case as mine. Can someone tell me what might be the issue here so that I can investigate further?
Here is the Firebase Dynamic Link debugger result:
Here are the apple-app-site-association parameters:
{"applinks":{"apps":[],"details":[{"appID":"####.***.****","paths":["NOT /_/*","/*"]}]}}
Can someone help out? Thanks!
For those who might run into a similar issue, I resolved this by disabling forced redirects in the link parameter. Somehow mobile Safari was force redirecting to the website, not the app.
The somewhat-new feature of bot menu button now dissapeared from my and other bots I used from my macOS client, presumably after latest mac Telegram update, version 8.1 (221723) Stable. Looking at some screenshots I did, menu button was there as of 14th September. Still shows on the Android phone. Link to two screenshots showing the issue
Google and SO searches do not address the question:
Can developers manage the appearance of the menu button instead of attachment button? Where did it go?
My bot heavily depends on the button and doesn't give any hints to the commands in the text. Did they silently disable it for desktop client? Any insight appreciated.
Can developers manage the appearance of the bot-menu button?
Yes, by using the setMyCommands method, you can control the command listed in the menu.
The command scope is used to determine the list of commands for a particular user viewing the bot menu
Can developers manage the appearance of the attachment-menu button?
No, the attachment button is handled by the Telegram Client.
Therefore it's not possible to manually show/hide the button.
There isn't a complete list of clients which will show the button, however
Telegram Desktop 3.1 client
Telegram 8.1 (221723) AppStore client
Both show the original design, with the / and attachment button.
The Android version does not show the button.
I am in trouble with the operation of Progressive Web Apps.
First, I pressed "Add to Home Screen" on the web, added the application to the home screen, and gave permission for push notification.
After that, I uninstalled Progressive Web Apps from the home screen, I expected that the notification will not arrive, but in fact it gets notified.
Can I detect uninstallation and reject push notifications?
I tried searching including the following site.
For example, but there is nothing expected of event or status.
Although it is an attachment of the home screen after uninstallation,
A Google Chrome icon is displayed in the notification bar.
home screen image
Based on your comment in response to the other answer, I figure you are building a progressive web app and want to implement this feature (turning off notifications on removal from the home screen) in your own PWA?
Currently (October 2017) there is no way for a PWA to detect if a user has removed it from their home screen. There is a way for the PWA to detect if it is uninstalled (as in the service worker is removed from the browser all together) but that is something totally different. You aren't uninstalling the PWA when you remove it from the home screen, you're just removing a shortcut. The PWA is still installed in the user's browser. They could still manually visit the site and your PWA would still be working.
Maybe this will become a feature in the future. For right now there isn't even a way to create a hack that would help.
If you navigate to the web app in question using Chrome for Android, either directly or by tapping on a notification, you can manually adjust its permissions by tapping on the "Lock" icon next to the location bar, then choosing "SITE SETTINGS", and then making changes there.
The specific steps to do this would vary if you're using a browser other than Chrome.
I found many similar questions here but I still don't understand how to get an AuthenticationToken for my MapControl in windows phone 8.1 application.
Okay, maybe I'm really stupid but in Official MSDN guide they said:
In your browser, navigate to your developer dashboard in the Windows
Phone Dev Center.
On the Dashboard page, click Submit App.
On the Submit app page, click App info.
On the App info page, reserve an app name and provide the other info
requested on the page. Then click Save.
On the Submit app page, click Map services.
And I don't see any Submit App menu item in my dashboard.
I suggest that Submit an app and Submit App mune items is similar so I click it. According to the MSDN guide I should see Map Services link , but I don't.
Can anyone tell me is the guide is up to date? How can I get what I want? I know that this is a really simple thing. Thank you!
P.S. Sorry for my English;)
The problem is that you went to Windows 8 dashboard, not Windows Phone dashboard.
The Windows Phone dashboard is here: https://dev.windowsphone.com/en-us/dashboard
Here are the steps:
Select Windows Phone dashboard http://prntscr.com/7p29s1
Click on submit app http://prntscr.com/7p2a1h
Fill app info and get the token http://prntscr.com/7p2aby
If you have any more questions please let me know!
I have created a shopify application. While I click on "install app" button from the application store of shopify, it's directly redirect to me in a callback URL. But what I want is: when click on "install app" button I need to display a confirm screen before installation.
See this for reference: ( I want to make like this).
For the reference jpg.
Shopify does this for you the first time the app is installed. It's a similar process to how Facebook and Twitter apps work. The first time you try and use it a permissions screen + confirmation button will pop up. Subsequent installations won't do that since the shop has already authorized the application.