How to get notification badge in actionbar item using Titanium - notifications

I am developing application using Titanium and want feature to have a badge of notification in the action bar in Android as shown in attached image.
From Android native we can achieve the same using actionLayout property from the menu >> item tag.
But not clear how can we do the same using Titanium.
At least I need suggestion or guidance from where I can move ahead.
Thanks.

Check Android Notification tutorial from Titanium documentation.
There should be all you need. However, I'm not sure what do you mean by badge. There is appBadge property but it works only for iOS system.

Related

How do I change the color of the keyboard to dark mode for android in React Native?

I know that the keyboardAppearance" prop for TextInput sets an ios keyboard to dark mode, but how could I do this for android too? Any help is much appreciated. Thanks!
Unfortunately you can't do it on android.
In Android the keyboard is not (only) a native feature. You can chose wether showing it or not and which keyboard to show.
But since it's another application, you can't access it directly, the only tasks you can do are opening the app with intent.
However, the iOS, which is ironically more closed to OS tweaks, is available:

Show a button on screen when the app is in background (React Native)

I'm trying to figure out how the apps like facebook messenger shows a circle of user image on screen when a new message comes, and Uber driver app shows the uber icon on screen when the user minimizes it. Is there anyway that I can show a customized component on phone screen even when the app is not open?
This Stackoverflow thread explains how to replicate in react native by changing the java code as its not supported by react native yet.
this feature is not support directly from react native and also this is not supported in ios therefore only you could implement it with java native code in android. to do that you should write a service in android which handle this element life cycle.
Check this below by lord pooria
RN-thread
Hope it helps. feel free for doubts

Appium iOS can't inspect notification layer

Im using Appium to test my notifications in my iOS app.
Im sending with another device a notification while the iOS app is in BG. Then I swipe down using :
((IOSDriver) wd).swipe(500,0,500,1000,1000);
The above works, the screen get scrolled down and I can physically see the notification. The issue is that the appium still inspects the screen below.
I checked appium inspector and it verified that it doesn't recognize nothing but the elemnts of the layer below the notifications one.
Any approach ??
As long as I know it is known limitation for iOS now.
You can get notification bar elements on Android only
But based on top comment it should be possible to wrap up with Appium since Xcode 9 introduced interaction with multiple apps, so its matter of time.
I found a workaround that fits my needs.
I found out that if I click the home button and then swipe down the notification are visible to Appium.
Because Appium not having key events for iOS, iPhone has the an accessibility option for home button, I toggled that on and I can simply click it during the test and swipe down the notification center.
I know it's not ideal but its working.
Thanks for the help.

Implement iOS 7 like Download Button

I need to implement iOS 7 like download button to show progress (Same as it is in iOS 7 AppStore app downloads).
Anybody has any idea what is the way to go about it?
Is there any existing control to achieve this or it is something apple specific and anybody else needs to implement using custom CAShapeLayer etc?
You have to make your custom implementation.
If you need it, here it is a very similar one:
An iOS 7-inspired blue circular progress view
Check my library, it contains that button, and it is customizable https://github.com/PavelKatunin
I know that this is an old question, asking for iOS 7 App Store download button, but if anyone is looking for the download button of the latest App Store (since iOS 11) I can suggest you take a look at this library. It provides the download button with progress and transition animation.
Here is a demo.

Titanium: Android back navigation via app icon in upper left corner

I have just started exploring Titanium.
I am looking for components/help to accomplish the standard Android sub-window back-navigation, where you have the app icon and back functionality in the upper left corner.
I checked the tutorials/SDK and kitchen sink project but don't seem to be able to find anything similar.
On their page with sample customer apps seems to be at least one app that demonstrates this type of navigation, which makes me think it should be available.
Any help or pointers would be much appreciated.
In our Android/iOS application, we use the standard iOS navigation, but on the Android side we built our own custom header view to implement our navigation. This view is added to the top of all other windows and/or main views.
We hooked the android:back button to trigger the navigation view's back feature as well, so we support both "standards".