Skip to content
Guest Big Announcement

Tweak not working

Featured Replies

So I'm very new to this, I've only done things so far with iGameGuardian and Flex. I wanted to try to make a MS Tweak that just launches a Ui on app launch with a message and links. I got the layout for it (I tend to learn best from reverse engineering others examples then reworking it) from someone's tutorial on here.

I did make package install and it installed. I added the apps bundle to the plist and searched the method in Flex. When I launch the app nothing happens. 

Tweak.xm:

	%hook ENAppDelegate
	-(BOOL)application:(id)fp8 didFinishLaunchingWithOptions:(id)fp12 {
	UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"Tactile Wars Tweak"
message:@"by Jax2120" delegate:self cancelButtonTitle:@"Thanks"                       otherButtonTitles:@"Visit Me", nil]; 
[alert show];
[alert release]; 
return %orig();
%new
}
	-(void)alertView:(UIAlertView *)alertView clickedButtonAtIndex:(NSInteger)buttonIndex {
       if(buttonIndex !=alertView.cancelButtonIndex) 
{ 
        [[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"https://iosgods.com/profile/572545-jax2120/"]];                                                                              
        }
}
	%end 
	
  • Author
6 hours ago, Amuyea said:

Make sure that the hook match in flex?

Yep. Flex says ENAppDelegate and FBSDKApplicationDelegate. I've tried both. On another app I am trying this for, the app I'd rather it work on, it says UnityAppController and AppEventListener. Neither work.

Updated by Jax2120

  • Author

My plist if it helps:

@Amuyea

	<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
  <key>Filter</key>
  <dict>
    <key>Bundles</key>
    <array>
      <string>com.apple.springboard</string>
      <string>com.ankama.tactilwars</string>
      <string>com.lightricks.Enlight-Editor</string>
    </array>
  </dict>
</dict>
</plist>
	

Updated by Jax2120

Create an account or sign in to comment

Featured Content

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.